zsh-users
 help / color / mirror / code / Atom feed
* monitoring the shell prompt
@ 1999-10-02 13:03 Paolo M. Pumilia
  1999-10-02 17:33 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo M. Pumilia @ 1999-10-02 13:03 UTC (permalink / raw)
  To: zsh-users

I would like to monitor the command line editor status and perform
some action as a change happen.
Since i use to switch often between vi-cmd and vi-ins modes, it would 
be useful to get the current vi mode displayed within the prompt 
As an example:
In command mode:  PROMPT='(@%m) %n - %% '
In insert mode:   PROMPT='(@%m) %n + %% '

Is it possible with the current version of zsh?

Thank you for your suggestions


Paolo Pumilia
---- cstc -


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-10-02 17:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-02 13:03 monitoring the shell prompt Paolo M. Pumilia
1999-10-02 17:33 ` Bart Schaefer
1999-10-02 17:45   ` Bart Schaefer

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).