From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14841 invoked from network); 2 Oct 1999 12:45:19 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 2 Oct 1999 12:45:19 -0000 Received: (qmail 20777 invoked by alias); 2 Oct 1999 12:45:05 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2645 Received: (qmail 20770 invoked from network); 2 Oct 1999 12:45:03 -0000 Date: Sat, 2 Oct 1999 15:03:28 +0200 From: "Paolo M. Pumilia" To: zsh-users@sunsite.auc.dk Subject: monitoring the shell prompt Message-ID: <19991002150327.A11347@wigner.cstc.org> Reply-To: pumilia@est.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i 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 -