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

Re: any way to get post command hook



Thanks, I will try  ttyctl, looks like it would work great for me.


Eric Cook <llua@xxxxxxx> wrote:

> On 10/17/2015 02:01 AM, covici@xxxxxxxxxxxxxx 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@xxxxxxxxxxxxxx



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