From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5015 invoked by alias); 24 Sep 2013 02:58:28 -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: 17996 Received: (qmail 7373 invoked from network); 24 Sep 2013 02:58:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130923195839.ZM20434@torch.brasslantern.com> Date: Mon, 23 Sep 2013 19:58:39 -0700 In-reply-to: <20130923211051.GA49013@redoubt.spodhuis.org> Comments: In reply to Phil Pennock "Re: Colored-character displayed on CTRL-C ?" (Sep 23, 2:10pm) References: <20130923192633.GA47494@redoubt.spodhuis.org> <20130923211051.GA49013@redoubt.spodhuis.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-users@zsh.org" Subject: Re: Colored-character displayed on CTRL-C ? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Sep 23, 2:10pm, Phil Pennock wrote: } } My apologies, I misinterpreted the point at which you were pressing } Ctrl-C and my advice won't help at all. Sorry. Actually you're not that far off. $? == 1 after interrupting ZLE with the terminal interrupt character, so it is possible to have the prompt show something instead of trapping the signal. It's just not possible to distinguish a command that was interrupted before it started from one that exited with status 1 without doing some additional work. E.g., you could test for $HISTNO having changed, or not, though that gets tricky with HIST_IGNORE_DUPS.