From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23987 invoked by alias); 17 Oct 2015 08:50:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20782 Received: (qmail 8198 invoked from network); 17 Oct 2015 08:50:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 From: covici@ccs.covici.com To: Eric Cook cc: zsh-users@zsh.org Subject: Re: any way to get post command hook In-reply-to: <5621ED1B.5000406@gmx.com> References: <16766.1445061696@ccs.covici.com> <5621ED1B.5000406@gmx.com> Comments: In-reply-to Eric Cook message dated "Sat, 17 Oct 2015 02:39:23 -0400." X-Mailer: MH-E 8.5; nmh 1.6; GNU Emacs 23.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21136.1445069818.1@ccs.covici.com> Date: Sat, 17 Oct 2015 04:16:58 -0400 Message-ID: <21137.1445069818@ccs.covici.com> X-SpamH-OriginatingIP: 70.109.53.110 X-SpamH-Filter: s-out-001.smtp25.com-t9H8Gxt7017536 Thanks, I will try ttyctl, looks like it would work great for me. Eric Cook wrote: > On 10/17/2015 02:01 AM, covici@ccs.covici.com wrote: > > Hi. I have some commands which mess up my tty modes, so I would like to > > have zsh issue an stty command after each command to change them back to > > normal -- any way to do this? I see something about a pre command hook, > > but nothing about a post command hook, which seems to be what I need. > > > > Thanks in advance for any suggestions. > > > precmd() runs after commands, before your prompt is drawn. > ttyctl -f may also be of use in this particular case. > -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com