about summary refs log tree commit diff
path: root/Doc/Zsh/params.yo
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2022-01-18 23:20:53 +0100
committerMikael Magnusson <mikachu@gmail.com>2022-01-30 18:14:54 +0100
commit8bf0f0cf45606971d1433b36ce21ab45f6226004 (patch)
treedaac95b637e6c878f0185dd25d029ca4649993ad /Doc/Zsh/params.yo
parent75c3664a62010dfae620d77930f8ea5aae78b602 (diff)
downloadzsh-8bf0f0cf45606971d1433b36ce21ab45f6226004.tar.gz
zsh-8bf0f0cf45606971d1433b36ce21ab45f6226004.tar.xz
zsh-8bf0f0cf45606971d1433b36ce21ab45f6226004.zip
49694 + doc: Allow using empty STTY= to freeze tty for a single command
Previously, doing this would just run stty with no arguments, which
normally causes it to print some terminal settings to stdout.
Diffstat (limited to 'Doc/Zsh/params.yo')
-rw-r--r--Doc/Zsh/params.yo5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index 6b52d3b1c..6d2d41b7a 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -1570,6 +1570,11 @@ if it is in the environment of the shell but not explicitly assigned to in
 the input line. This avoids running stty at every external command by
 accidentally exporting it. Also note that tt(STTY) should not be used for
 window size specifications; these will not be local to the command.
+
+If the parameter is set and empty, all of the above applies except
+that tt(stty) is not run. This can be useful as a way to freeze the tty
+around a single command, blocking its changes to tty settings,
+similar to the tt(ttyctl) builtin.
 )
 vindex(TERM)
 item(tt(TERM) <S>)(