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

Re: stty not working



On 1 September 2014 04:38, Сергей Новиков <arrecck@xxxxxxxxx> wrote:
> Hi,
> I am trying to unset ECHO flag for tty, but stty doesn't work. After
> reading documentation I am still not clear about its behavior.
>> ttyctl
>> tty is not frozen
>> stty -echo
>> test test
> but
>> stty -echo; read <enter>
> working fine. My brain is broken.
> With best regards.

You can do this too,
STTY=-echo cat
and zsh will set -echo for the duration of that command. Since read is
a builtin it doesn't work for that, but it has a flag to turn off
echoing already.

-- 
Mikael Magnusson



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