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

Re: Home/End keys do not work



Vincent Lefevre <vincent@vinc17.org> wrote:
> On 2005-03-22 16:49:13 +0300, George Chelidze wrote:
>> I have recently installed Debian Woody on my workstation. I have a 
>> couple of RedHat 7.3 boxes. I run gnome, gnome-terminal and ssh into one 
>> of redhat boxes without a problem. Then I run mc (Midnight Commander) 
>> and edit a file with F4. If I press Home key, "H" is inserted before the 
>> cursor instead of placing it at the beggining of the line. If I press 
>> End key, "F" is inserted. Everything works fine when I ssh to another 
>> debian box. Everything works fine when I ssh from my box to any other 
>> box without using X (in text mode). Any ideas?

The home/end keys may differ between terminal emulators (and are configurable
in more than one).  You need to match the terminfo against the terminal
emulator's settings.

> How about other terminals (e.g. xterm)?

> Depending on the terminal, terminfo ($TERM), and the configuration
> of the terminal, there are several possible escape sequences for
> the Home and End keys.

> BTW, Emacs has a problem with the End key with xterm-vt220:

>   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=173983

That's an emacs bug: vt220's don't have an end-key.  A vt220 emulator on
a PC keyboard usually uses the home/end keys for find/select.  Tera Term
is different: is uses home/pageup for that pair, and end/pagedown for the
ppage/npage combination.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Reply to: