On 2015-12-06 23:22:11 +0100, Jilles Tjoelker wrote: > Dash is behaving correctly here. The flush of the input queue occurs > because the NOFLSH flag is not set in termios c_lflag. After 'stty > noflsh', there is still '^\' visible but the characters before it are > not discarded.
The behavior is different with bash and zsh, but I suppose that this is because neither bash nor zsh uses the cooked mode. > The default (to flush) is probably more useful, though. Well, if the signal is ignored, then it is more intuitive to disable flushing, IMHO, i.e. to ignore Ctrl-\ entirely. However the terminal handling is buggy in this case (I mean, if one types "foo" then Ctrl-\ then [Backspace], only the backslash is erased so that one gets "foo^" displayed instead of "fo"). -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)