AlecAivazis / survey

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

Typing into prompt clears previous lines in terminal #318

Closed benpleitner closed 3 years ago

benpleitner commented 3 years ago

What operating system and terminal are you using? MacOS Catalina / iTerm. Saw this on MacOS High Sierra as well.

An example that showcases the bug. I've attached a video of the bug in this zip file: BugDemo.zip

It seems that when I adjust the width of my terminal tab so that the prompt text is all the way at the end of the terminal screen (i.e. no whitespace between the last character in the prompt description text - ":" in this case - and the end of the terminal screen), a line in my terminal is cleared every time I type a character.

What did you expect to see? I would expect my terminal to remain as is when I type input into a prompt.

What did you see instead? I saw my terminal clear when I typed given the specifications above.

AlecAivazis commented 3 years ago

This should now be fixed in v2.2.7