Closed yc90s closed 6 years ago
Liner controls the entire command line. If you want something to appear before the editable field, it must be a part of the prompt.
eg. your example would be
eg. your example would be
prefix := "===don't overwrite this=== "
line.Prompt(prefix + "What is your name? ")
Can't join it to the prompt, because it's printed somewhere else. Anyway, thank you for reply
Description
liner will overwrite the same line of output. How can I reserve the previous content?
Example
When you enter a
<Backspace>
, the content will be overwirted.