wavesoft/local-echo

Allow program to print something during a prompt without clobbering over input

dragoncoder047 opened this issue · 0 comments

I have not encountered this problem yet, but I don't see anything in the code to protect against it...

The terminal can still be written to while a prompt is going, and if the user's cursor is not at the bottom, it will clobber over their input. The print and println methods should make sure that doesn't happen, by clearing the input and prompt, printing whatever, and restoring the input and prompt.