* Detect if zle recursive-edit ended by Ctrl-C
@ 2016-05-22 13:49 Sebastian Gniazdowski
2016-05-22 13:53 ` Sebastian Gniazdowski
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Gniazdowski @ 2016-05-22 13:49 UTC (permalink / raw)
To: Zsh Users
Hello,
I need to detect if recursive-edit is ended by Ctrl-C. Is that
possible? I could overload accept-line to know when recursive-edit is
ended by enter, but not touching such widgets makes code clean. Is
there other way?
Best regards,
Sebastian Gniazdowski
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Detect if zle recursive-edit ended by Ctrl-C
2016-05-22 13:49 Detect if zle recursive-edit ended by Ctrl-C Sebastian Gniazdowski
@ 2016-05-22 13:53 ` Sebastian Gniazdowski
0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Gniazdowski @ 2016-05-22 13:53 UTC (permalink / raw)
To: Zsh Users
Apparently Ctrl-C sets $? to 1, and accept-line to 0, so this is quite simple
Best regards,
Sebastian Gniazdowski
On 22 May 2016 at 15:49, Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:
> Hello,
> I need to detect if recursive-edit is ended by Ctrl-C. Is that
> possible? I could overload accept-line to know when recursive-edit is
> ended by enter, but not touching such widgets makes code clean. Is
> there other way?
>
> Best regards,
> Sebastian Gniazdowski
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-22 13:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-22 13:49 Detect if zle recursive-edit ended by Ctrl-C Sebastian Gniazdowski
2016-05-22 13:53 ` Sebastian Gniazdowski
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).