input() ignores newlines, truncates after 200 characters

RianOC
New Contributor

Is there any setting to respect newlines and not truncate for input?

Also you can see the input text overflows over outside the box when the browser is narrow which is not desirable. 

RianOC_0-1732546464647.png

rdokala
New Contributor III

Workarounds

Option A — Print first, input separately (cleanest)

prompt = (
('o' * 200)
+ '\n'
+ ('?' * 200)
+ '\n'
+ ('-' * 200)
)

print(prompt)
x = input("> ")