* any way to get post command hook
@ 2015-10-17 6:01 covici
2015-10-17 6:39 ` Eric Cook
0 siblings, 1 reply; 3+ messages in thread
From: covici @ 2015-10-17 6:01 UTC (permalink / raw)
To: zsh-users
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.
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: any way to get post command hook
2015-10-17 6:01 any way to get post command hook covici
@ 2015-10-17 6:39 ` Eric Cook
2015-10-17 8:16 ` covici
0 siblings, 1 reply; 3+ messages in thread
From: Eric Cook @ 2015-10-17 6:39 UTC (permalink / raw)
To: zsh-users
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: any way to get post command hook
2015-10-17 6:39 ` Eric Cook
@ 2015-10-17 8:16 ` covici
0 siblings, 0 replies; 3+ messages in thread
From: covici @ 2015-10-17 8:16 UTC (permalink / raw)
To: Eric Cook; +Cc: zsh-users
Thanks, I will try ttyctl, looks like it would work great for me.
Eric Cook <llua@gmx.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-17 8:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-17 6:01 any way to get post command hook covici
2015-10-17 6:39 ` Eric Cook
2015-10-17 8:16 ` covici
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).