From 72f0b14a0448ecf50935a1f6c90337c3d1c969af Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 24 Jul 2009 18:35:49 +0000 Subject: 27188: improve read -q by using read -k code --- Doc/Zsh/builtins.yo | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Doc/Zsh/builtins.yo') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 4311e871e..6d1fffabf 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1113,9 +1113,10 @@ item(tt(-q))( Read only one character from the terminal and set var(name) to `tt(y)' if this character was `tt(y)' or `tt(Y)' and to `tt(n)' otherwise. With this flag set the return status is zero only if the character was -`tt(y)' or `tt(Y)'. Note that this always reads from the terminal, even -if used with the tt(-p) or tt(-u) or tt(-z) flags or with redirected input. -This option may also be used within zle widgets. +`tt(y)' or `tt(Y)'. This option may be used with a timeout; if +the read times out, or encounters end of file, status 2 is returned. +Input is read from the terminal unless one of tt(-u) +or tt(-p) is present. This option may also be used within zle widgets. ) item(tt(-k) [ var(num) ])( Read only one (or var(num)) characters. All are assigned to the first -- cgit 1.4.1