Closed nkh closed 2 years ago
Yes, rlwrap
does not erase the prompt and user input when it receives a SIGINT
. Should it?
What is worse is that the terminal doesn't get reset to its original state when rlwrap
is run in a subshell (like in your case)
See #145
I not sure if it should or not, probably not since it can be done this way:
(trap 'echo -ne "\e[A\e[K"' SIGINT ; order=$(rlwrap -pYellow -S 'Your pizza? ' -o cat))
running the man page example in a subshell
I use ^C to end the input, I get:
when I expect