From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19096 invoked by alias); 2 Sep 2014 08:47:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33091 Received: (qmail 2260 invoked from network); 2 Sep 2014 08:47:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f156d0000063c7-6a-5405840eadd3 Date: Tue, 02 Sep 2014 09:47:10 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: stty not working Message-id: <20140902094710.0f2e0b60@pwslap01u.europe.root.pri> In-reply-to: <140901112837.ZM1866@torch.brasslantern.com> References: <140901012727.ZM1069@torch.brasslantern.com> <20140901111643.6e2acd9b@pwslap01u.europe.root.pri> <140901112837.ZM1866@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmluLIzCtJLcpLzFFi42I5/e/4FV2+FtYQg7fPhS0ONj9kcmD0WHXw A1MAYxSXTUpqTmZZapG+XQJXxv0ThgUveSq+Tz/O3sC4mauLkYNDQsBE4uJCti5GTiBTTOLC vfVANheHkMBSRolZG/uZIJzlTBK737xjBaliEVCVeLriCZjNJmAoMXXTbEYQW0RAXOLs2vMs ILawgKxE+/SDYHFeAXuJdTO3gG3gFLCUmPngAzOILSTwjFFi96pYEJtfQF/i6t9PTBBX2EvM vHIGqldQ4sfke2AzmQW0JDZva2KFsOUlNq95yzyBUWAWkrJZSMpmISlbwMi8ilE0tTS5oDgp PddQrzgxt7g0L10vOT93EyMkAL/sYFx8zOoQowAHoxIP74uFzCFCrIllxZW5hxglOJiVRHhf JLKGCPGmJFZWpRblxxeV5qQWH2Jk4uCUamD0crw/Ndkg3UA0/uiC5v9TvWIeLd5tcD7gjoqN WyVnT2DSc/GgEG3jv7Oy8i7sn8FkMNP6Cf86gY6M9+4F07Q35M6dxpx97eaGoGUtAm5Fm9jd btyetyCJOWbSwxtzZ8YEXxe+W8MinnvgY+A+F70XrFsYF50IjwzZ8cdqtt37fUKTOl42XVuq xFKckWioxVxUnAgAU2vkCR4CAAA= I ended up with this. diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index f709f50..9862c63 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1639,14 +1639,26 @@ Do nothing and return an exit status of 0. findex(ttyctl) cindex(tty, freezing) item(tt(ttyctl) tt(-fu))( -The tt(-f) option freezes the tty, and tt(-u) unfreezes it. +The tt(-f) option freezes the tty (i.e. terminal or terminal emulator), and +tt(-u) unfreezes it. When the tty is frozen, no changes made to the tty settings by external programs will be honored by the shell, except for changes in the size of the screen; the shell will simply reset the settings to their previous values as soon as each command exits or is suspended. Thus, tt(stty) and similar programs have -no effect when the tty is frozen. Without options it reports whether the -terminal is frozen or not. +no effect when the tty is frozen. Freezing the tty does not cause +the current state to be remembered: instead, it causes future changes +to the state to be blocked. + +Without options it reports whether the terminal is frozen or not. + +Note that, regardless of whether the tty is frozen or not, the +shell needs to change the settings when the line editor starts, so +unfreezing the tty does not guarantee settings made on the +command line are preserved. Strings of commands run between +editing the command line will see a consistent tty state. +See also the shell variable tt(STTY) for a means of initialising +the tty before running external commands. ) findex(type) item(tt(type) [ tt(-wfpams) ] var(name) ...)( pws