Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle clear-screen, exit status
- X-seq: zsh-users 15458
- From: JÃrÃmie Roquet <arkanosis@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: zle clear-screen, exit status
- Date: Tue, 19 Oct 2010 17:47:52 +0200
- Cc: Brian Lewis <brian@xxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=dy1IoL0nMpeE/ggFEc28k6VG1IUomOiwlliuy6/Emf0=; b=UUiaYpymsH4jENm/2+2TKML5KarZjfyZ/bhGAU1k8OIwa66JnrozxlclUV/RQqw9t7 WZMwltjpptAhl0f6M7DBCkVU/1lvjcd8TlQKlc4J0m9/1oz53IE5YwpngNT+MRYAqPzS QwKLhX0php8888kEYFkIPskGtV9pY/HTsA4aw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=RHNuRdOtdefg78nlIx7YnbjLf/dI5pKDTgPr1azT1v6ohI6cQzEqNyo+aJ22s6CNN3 jTHQb4aI+PGpNDIfC732urkdhBq+zRhdr2iMwkX+6D3EDZ/YPEidKRuJ6MQHirV2D6b5 qv0fADi3nEn8RBfHlTQ+1wdWejRaiE3hOt/UA=
- In-reply-to: <20101019153258.GD2149@xxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20101019153258.GD2149@xxxxxxxxxxxxxxx>
Hi,
2010/10/19 Brian Lewis <brian@xxxxxxxx>:
> My prompt displays $?, the program exit status. When I hit Ctrl-L, I'd
> like $? to be set to 0 somehow before the prompt is redisplayed.
>
> I can't figure out how to do it. It is as if $? is saved before my
> widget is called, and restored after.
>
> Here's what I've been playing with:
>
> [...]
bindkey -s "^L" "clear\n"
is enough :)
--
JÃrÃmie
Messages sorted by:
Reverse Date,
Date,
Thread,
Author