Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Detect if zle recursive-edit ended by Ctrl-C



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@xxxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author