Control: found -1 0.5.11+git20210903+057cd650a4ed-9

On 2015-12-07 02:27:29 +0100, Vincent Lefevre wrote:
> 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.

About the default behavior, there are several behaviors, depending
on the shell. I've just asked in the austin list what is expected:

https://www.mail-archive.com/austin-group-l@opengroup.org/msg10539.html

> > 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").

There are still display issues, whether noflsh is used or not.

-- 
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)

Reply via email to