Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Getting back a command after hitting CTRL-C
- X-seq: zsh-users 12967
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Subject: Re: Getting back a command after hitting CTRL-C
- Date: Tue, 17 Jun 2008 14:40:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=/MOjuIUGrwqApD5mcxACBq3V4dBi5hNwzw58+Y1r3gg=; b=dJ1FtGnAeuhh+rlhfZSZqXLdWLQczCwYObWhSi3pAedbMhpb0g4a7mPeAO2ydlGSJY zqYv6g7ZdtXu5f2trb7l04DuyAZt17Oky/tlh59mIcyFjeMNsD0EwLDBOxuC2hTq1HD7 wfC3hBnvfYRjFiWHpIcANUbbaaFCw+yPzouNo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RWkXv5XVS2/axQs8tM5s/bDO52kgGSShEHNr/rjbF8iaZzjzuwZCmim1EnbV6CiNCQ 27k047TkMh6qixBX2AQRhkWyRXW8yDbpLQphK8pApUtoQCoUPOFayMVD4zx4X5BQ+J7e VXkZK7gAFbsCbv67rlagXkB/2ZTGoRKTEl19U=
- In-reply-to: <20080617123812.GG5016@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70806170505v24c8d557g146a73d2cd553bab@xxxxxxxxxxxxxx> <237967ef0806170512q29a269ceo799ae02a70dc8f45@xxxxxxxxxxxxxx> <2d460de70806170527m59a16377hb6919bc7ad8f65a3@xxxxxxxxxxxxxx> <237967ef0806170528x3a563ca2i990a642a7d168311@xxxxxxxxxxxxxx> <20080617123812.GG5016@xxxxxxxxxxxxxxx>
2008/6/17 Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>:
>> Well, that is the idea, every time it annoys you, you remember to use
>> the other keybinding instead :). You can of course change the interrupt
>> key with stty, but then you won't be able to interrupt actual commands with
>> ctrl-c anymore.
> [...]
>
> which you could work around with some precmd/prexec hook I
> suppose.
>
> This seems to work:
>
> trap 'zle kill-buffer; zle -R' INT
Aha, zsh always complains to me that i'm trying to use zle outside widget
functions, so i just assumed it would here too. (you can't use them in
preexec/precmd for example).
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author