Subject: Re: home end keys do not work
To: Lubos Vrbka <shnek@tiscali.cz>
From: Johnny Billquist <bqt@update.uu.se>
List: netbsd-users
Date: 07/13/2004 21:40:14
On Tue, 13 Jul 2004, Lubos Vrbka wrote:
> > What if you bind the characters produced by the key? For example, when I
> > input
> > bind '<ctrl+^><home>'=beginning-of-line
> > (displayed as bind '^[[H'=beginning-of-line in xterm, '^[[7~'=... in
> > console/vt220) my home key works as expected.
> interesting. this works, but only in xterm. <ctrl+^><home> gives ^[[H
>
> in aterm this sequence gives me ^[[1~ - i don't understand the presence
> of the tilde character. when i "bind" this, it works, but after home is
> pressed and cursor is moved the tilde is also printed to the beginning
> of the line...
The tilde is part of the sequence sent by the key! You need to include it
in the binding sequence!
I told you those keys send CSI 1 ~ and CSI 4 ~ , not just CSI 1 and CSI 4
Johnny
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt@update.uu.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol