Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
When is STTY ignored?
- X-seq: zsh-workers 41179
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: When is STTY ignored?
- Date: Mon, 29 May 2017 21:36:25 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:user-agent; bh=ieDNegdh0rLlJXLeKg6pvymdvu5lsnSYtARCw8e1wVY=; b=rAZILUQemWGKc4ihvImkEhBTGx5Hels4yLWG72lf+sxOqdPoO9INjVOPtkCk1m/cvO AL4DIfkcdMtLT2VWNwiPxRCJdxTB3LicJ3fgR4Ts4WJWWgExdAlK3hrGqD2KgxLDydip K6twGgEidOHVMrc5r9Tq/JGsAA1MzswImgJrCOvilr5oZPRdaQ7YOGGPkwNAmW4WXfcU 2E0GuJK7Q5r7EcOII1gD3k919+Kqg8ShVBJgBMEbm0fk443144uDstmXmSaN9TaghMKC k02GtB8S2ZplbSOCtGJLtFIebdSwEzRsSAVVVxtbqd7HsMKzZsoTzrCWqgvzCaNFAkyy tGSg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
It's not very clear to me when one may use STTY.
STTY=-echo line
zsh -c 'STTY=-echo line'
STTY=-echo command line
f() line; STTY=-echo f
f() STTY=-echo line; f
work (at reading a line with tty echo disabled)
But:
STTY=-echo read line
STTY=-echo eval line
zsh -c 'f() line; STTY=-echo f'
zsh -c 'f() STTY=-echo line; f'
don't (stty not run).
See also:
$ f() STTY=-onlcr line; STTY=-echo f; stty
asd
asd
speed 38400 baud; line = 0;
-brkint -imaxbel iutf8
-onlcr
-echo not applied, -onlcr not restored.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author