Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Printing ^C, ^D key presses at end of prompt when pressed



Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:

> On Feb 3, 11:05pm, Michael Treibton wrote:
> } 
> } In bash, if I type something at the prompt, and press ^C, my prompt
> } would look like this:
> } 
> } $ some command ^C
> } 
> } That is the "^C" is explicitly printed.
> 
> Really.  Doesn't work for me.  Do you somehow have readline disabled?

Actually:

bash-4.1$ stty echoctl
bash-4.1$ ^C
bash-4.1$ stty -echoctl
bash-4.1$                  <--- Ctrl-C pressed, no output.

No such luck in zsh (stty echoctl has no effect).
Coult it a spurious line redraw on ctrl-C (and others)?

Note how echoctl still works in zsh when using the read builtin or
just cat:

phil@air:~% stty echoctl
phil@air:~% read
^C%
zsh: exit 1
phil@air:~% cat
^C
phil@air:~%                <-- Ctrl-C pressed, no output

Phil.



Messages sorted by: Reverse Date, Date, Thread, Author