From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8856 invoked by alias); 30 Oct 2013 15:31:37 -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: 18075 Received: (qmail 2018 invoked from network); 30 Oct 2013 15:31:31 -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 From: Bart Schaefer Message-id: <131030083139.ZM8019@torch.brasslantern.com> Date: Wed, 30 Oct 2013 08:31:39 -0700 In-reply-to: Comments: In reply to Thiago Padilha "How to restart zle without invoking 'accept-line'?" (Oct 30, 9:30am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Thiago Padilha , zsh-users@zsh.org Subject: Re: How to restart zle without invoking 'accept-line'? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 30, 9:30am, Thiago Padilha wrote: } } This code propagates accept-line to the main zle widget(user presses } enter), but how can I handle like ctrl+c which would normally cause zle to } restart without executing the command? For that specific case I believe this will do it: setopt localtraps trap 'zle send-break' INT QUIT There are really only three ways to restart ZLE: accept-line (and all the variants), send-break, and push-line-or-edit.