From 632dc55f9c3b206ee600d48a11bd6a859131d30a Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 14 Oct 2000 00:14:15 +0000 Subject: Document tty mode restoration. --- ChangeLog | 6 ++++++ Doc/Zsh/jobs.yo | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f7693866d..a70497375 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-10-13 Bart Schaefer + + * 13000: Doc/Zsh/jobs.yo: Document tty restoration when a stopped + job is resumed with fg. This was previously documented only under + the STTY parameter, but it applies to all stopped jobs. + 2000-10-13 Sven Wischnowsky * 12995: Src/Zle/compmatch.c: two completion matching fixes; wrong diff --git a/Doc/Zsh/jobs.yo b/Doc/Zsh/jobs.yo index 752181f02..98fca58c5 100644 --- a/Doc/Zsh/jobs.yo +++ b/Doc/Zsh/jobs.yo @@ -9,7 +9,7 @@ command, and assigns them small integer numbers. When a job is started asynchronously with `tt(&)', the shell prints a line which looks like: -nofill(tt([1] 1234)) +example([1] 1234) indicating that the job which was started asynchronously was job number 1 and had one (top-level) process, whose process ID was 1234. @@ -20,7 +20,8 @@ does not have a place in the job table, and is not subject to the job control features described here. If you are running a job and wish to do something else you may hit the key -^Z (control-Z) which sends a tt(TSTP) signal to the current job. +^Z (control-Z) which sends a tt(TSTP) signal to the current job: this key +may be redefined by the tt(susp) option of the external tt(stty) command. cindex(jobs, suspending) cindex(suspending jobs) The shell will then normally indicate that the job has been `suspended', @@ -43,6 +44,11 @@ If you set this 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. -- cgit 1.4.1