AlecAivazis / survey

A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
MIT License
4.08k stars 351 forks source link

Multiline input: weird cursor placement #324

Closed noerw closed 3 years ago

noerw commented 3 years ago

What operating system and terminal are you using? fedora linux, gnome terminal

An example that showcases the bug. any multiline input

What did you expect to see? Have the cursor on the next (free) line

What did you see instead? Cursor initially hangs at the end of the prompt (eg ? Multiline: [Enter 2 empty lines to finish]<CURSOR>) I'm not sure this is intended (I see that in recent versions, the cursor remains indented for the following lines), but i think it looks much cleaner to have the input start on the next line.

grafik

AlecAivazis commented 3 years ago

Hey @noerw! Thanks for reporting this.

I agree the current cursor placement isn't ideal however I think the correct behavior is described in #305 which aims to align with screenreader's expected behavior. I'm going to close this ticket to keep things tidy but feel free to share your thoughts there