On 6/22/19 1:52 AM, Jorge Almeida wrote:
I think (wrongly?) that readline deals with redrawing when typing a command in the shell.

I believe that readline comes into play with the shell which is controlling the command line. Any past output, even old command lines, are historical data that the shell is not concerned with.

Think about it this way, on an old school TTY with keyboard and printer, the shell would only be responsible for the current line. Anything prior to that is analogues to what has been printed and no longer the shell's concern. Conversely, the terminal emulator; XTerm / urxvt / et al., worries about (re)displaying what has been previously printed.

Readline, via the shell, is only involved with the current command prompt.

Reply via email to