Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to interrupt zed (i.e. vared) manually?
- X-seq: zsh-workers 44685
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: How to interrupt zed (i.e. vared) manually?
- Date: Mon, 19 Aug 2019 01:17:47 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=OgvC80ZplVurbh1lbI8hYKmKm6oe/CqL2kEHvqP1Eh0=; b=VDAgL+Fc3qSFH7DSJc6AYfeyDZgYywlqa8Uf+K6gttlTfgb99UJxS26Yjy5eVWyZ1a GqBqt9iZOdm7u/2MDd7/A6LhY0ITgJrzJyjrJcmveLZLVF2SXmohE06hXTN5MX1M85Cd ituZyj+uk5EwDk8QiEUhY+yz1+eFEd4hGJ+vzzwtqYoiC2Ua8Piva0yjjmDU8liQRr3q g7BQnxO10OjgQ8fZgwaSn23iF322j9xvCmgqSXKpgZUUHXXKtNxelHlzY2456vCzO08+ R5VGRYlpupVl0cNjRiXs4SzIWd8HjfqClU8DF6cjO9K7z4FwRw3B89859x5qZDBe2uhH zmLQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
adding:
trap "zle .send-break; return 1;" INT
to __zed_init (a function passed to vared via `... -i __zed_init ...')
obtains a half-success – it proves that vared's reaction to INT can be
controlled, as vared doesn't exit, however it reveals a next problem:
how to exit vared manually – from the trap?
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author