From: Bart Schaefer <schaefer@brasslantern.com>
To: Thiago Padilha <tpadilha84@gmail.com>, zsh-users@zsh.org
Subject: Re: How to restart zle without invoking 'accept-line'?
Date: Wed, 30 Oct 2013 08:31:39 -0700 [thread overview]
Message-ID: <131030083139.ZM8019@torch.brasslantern.com> (raw)
In-Reply-To: <CAAq2XdpsH3kS9_LP2b9MapdGZAJ0kTzLQa5LmY34MUOuhLXneA@mail.gmail.com>
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.
next prev parent reply other threads:[~2013-10-30 15:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 11:30 Thiago Padilha
2013-10-30 15:31 ` Bart Schaefer [this message]
2013-11-03 21:53 ` Thiago Padilha
2013-11-04 18:14 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=131030083139.ZM8019@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=tpadilha84@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).