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

PATCH: Clarify doc for tty handling with job control.

This duplicates in the "Jobs and Signals" section some information from the
description of the STTY parameter about the way zsh restores tty modes upon
"fg", because it applies to any fg'd command, not just those with STTY in
the environment.  This came up as a sideline to my conversation with Gray
about the gdb STGTTOU bug.

I suppose I could have deleted the text from STTY and cross-referenced, but
it didn't seem extensive enough to make that worthwhile.

Index: Doc/Zsh/jobs.yo
--- Doc/Zsh/jobs.yo	1999/07/23 15:48:26	1.3
+++ Doc/Zsh/jobs.yo	2000/10/13 23:59:51
@@ -44,6 +44,11 @@
 tty option, then background jobs will suspend when they try to produce
 output like they do when they try to read input.
+When a command is suspended and continued later with the tt(fg) or
+tt(wait) builtins, zsh restores tty modes that were in effect when it was
+suspended.  This (intentionally) does not apply if the command is
+continued via `tt(kill -CONT)', nor when it is continued with tt(bg).
 cindex(jobs, referring to)
 cindex(referring to jobs)
 There are several ways to refer to jobs in the shell.

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   

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