Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh & HP Term
- X-seq: zsh-users 3047
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Ville Herva <vherva@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- Subject: Re: zsh & HP Term
- Date: Fri, 28 Apr 2000 04:19:29 +0000
- In-reply-to: <20000427110231.A3075@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000427110231.A3075@xxxxxxxxxxxxxxxxxx>
On Apr 27, 11:02am, Ville Herva wrote:
} Subject: Re: zsh & HP Term
}
} Propably not strictly related to zsh, but I'll ask anyway: I'm having a
} bit different problem with terminal under HPUX 10.20. Most if not all
} programs I run seem to ruin my terminal settings so that when I return to
} zsh, arrow keys work no more.
Many terminals have two modes, the "normal" mode and the "keypad" mode.
The arrow keys often send different character sequences in the different
modes. What's happening is that your terminal is getting switched from
one mode to the other and not switched back. This is probably a result
of a problem with the termcap or terminfo description of your terminal.
The easiest thing to do is use bindkey to bind both the keypad and normal
arrow key sequences to the same ZLE actions. Most probably that means
something like this:
bindkey '\e[A' up-line-or-history
bindkey '\e[B' down-line-or-history
bindkey '\e[C' forward-char
bindkey '\e[D' backward-char
bindkey '\eOA' up-line-or-history
bindkey '\eOB' down-line-or-history
bindkey '\eOC' forward-char
bindkey '\eOD' backward-char
If you use the vi keybindings, which it looks as though you might from
your description of the symptoms, then you should use:
bindkey -v
bindkey '\e[A' vi-up-line-or-history
(etc., putting "vi-" into each of the above examples)
Hey, PWS: You might want to mention keypad mode in the FAQ answer 3.8.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author