Zsh Mailing List Archive
Messages sorted by:
Re: up-arrow no longer works right
- X-seq: zsh-users 13944
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: TjL <luomat@xxxxxxxxx>
- Subject: Re: up-arrow no longer works right
- Date: Thu, 19 Mar 2009 19:48:35 -0700
- Cc: Zsh Users List <zsh-users@xxxxxxxxxx>
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200902; d=spodhuis.org; h=Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=zw+Xo/dIn6ToNUROypQKSDOhyk6ZgPGyI2owTnK9/J1xO7CvAPioz1lCcpPaE+ZM/ncIJuW8m0UTWv15ozsb5oqbsufpOSn3PR+Q/awZBKuMM1YyONjElNqxc7p3Kcv+YnvGwQpBS4tFFNT+lkqB7Em4KIETEhIq8RR1tlnJ70s=;
- In-reply-to: <d2ecb10b0903191838y68e1dfbbsa80289a52256eb2a@xxxxxxxxxxxxxx>
- Mail-followup-to: TjL <luomat@xxxxxxxxx>, Zsh Users List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <d2ecb10b0903191838y68e1dfbbsa80289a52256eb2a@xxxxxxxxxxxxxx>
On 2009-03-19 at 21:38 -0400, TjL wrote:
> The oddity is that sometimes (usually after exiting from ssh and/or
> screen) zsh seems to "forget" that, and pressing the up-arrow will
> just go back through my history line by line, ignoring what I have
> already typed.
> Usually at that point I just exit the shell and open a new one, but
> I'd really like to be able to kick-start my existing session if
> possible (especially when I've ssh'd somewhere).
> Any ideas what might cause this and (more importantly) what I can do to fix it?
Perhaps the cursor keys have been put into application mode and your
terminal type isn't supporting them in that mode?
When things are working, if you run:
print -n '\e[?1h'
do they stop working?
If you run "bindkey", you'll see two batches for the two sets of cursor
keys; for me:
If those two sets ^[O<foo> and ^[[<foo> differ then this might explain
it. So, (1) bind both sets the same and (2) see if "stty sane" helps.
And: print -n '\e[?1l'
Messages sorted by: