lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] zsh keybindings on remote redhat server


From: Vadim Zeitlin
Subject: Re: [lmi] zsh keybindings on remote redhat server
Date: Thu, 13 Feb 2020 01:37:35 +0100

On Wed, 12 Feb 2020 23:43:45 +0000 Greg Chicares <address@hidden> wrote:

GC> On 2019-10-25 02:17, Greg Chicares wrote:
GC> [...]
GC> > My ~/.zshrc, for reasons similarly lost in the mists of time, contains:
GC> > 
GC> > # These three seem to be set by default:
GC> > # bindkey '\e[3~' delete-char      # Del
GC> > # bindkey '\e[H' beginning-of-line # Home
GC> > # bindkey '\e[F' end-of-line       # End
GC> > 
GC> > I think I might have needed those settings in the last century for cygwin,
GC> > and then commented them out when they seemed to have become unnecessary.
GC> > 
GC> > Experimentally, I uncomment the bindings for {Home,End}, and now the
GC> > anomaly reported earlier seems to have vanished, for viins mode.
GC> Now I find that I need to uncomment the one for Del as well.
GC> Otherwise, when SSHing from a corporate laptop into a redhat server,
GC> pressing Del...
GC>  - in viins mode: switches to vicmd mode
GC>  - in vicmd mode: changes the case of the character under the cursor

 I am not sure why does this happen, but there are basically 2 variables
here: the terminal and the terminfo database. And infocmp command should
give you the information about both, as it shows the current terminal and
"kdch1" capability value (which corresponds to the Del key). So it should
be possible to debug this by comparing its output in the various cases.

 Hope this helps at least a little,
VZ

Attachment: pgp_whhLptfBm.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]