From 16d7e31ae81bdd87dd90ce91d9072006e43f6596 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 19 Oct 2000 08:46:54 +0000 Subject: make non-blocking IO on ptys work again; add -t option to test if command is still alive (13035) --- Doc/Zsh/mod_zpty.yo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/mod_zpty.yo b/Doc/Zsh/mod_zpty.yo index 0c1558056..664e2fabd 100644 --- a/Doc/Zsh/mod_zpty.yo +++ b/Doc/Zsh/mod_zpty.yo @@ -9,6 +9,7 @@ xitem(tt(zpty) [ tt(-e) ] [ tt(-b) ] var(name) var(command) [ var(args ...) ]) xitem(tt(zpty) tt(-d) [ var(names) ... ]) xitem(tt(zpty) tt(-w) [ tt(-n) ] var(name) var(strings ...)) xitem(tt(zpty) tt(-r) var(name) [ var(param) [ var(pattern) ] ]) +xitem(tt(zpty) tt(-t) var(name)) item(tt(zpty) [ tt(-L) ])( In the first form, the var(command) is started with the var(args) as arguments. The command runs under a newly assigned pseudo-terminal; this @@ -35,6 +36,10 @@ read will be put in the parameter named var(param). If the var(pattern) is also given, output will be read until the whole string read matches the var(pattern). +The tt(-t) option can be used to test whether the command var(name) is +still running. It returns a zero value if the command is running and +a non-zero value otherwise. + The last form without any arguments is used to list the commands currently defined. If the tt(-L) option is given, this is done in the form of calls to the tt(zpty) builtin. -- cgit 1.4.1