Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2014 20:40:41 -0400 (EDT)
From:      Thomas Dickey <dickey@his.com>
To:        Victor Sudakov <vas@mpeks.tomsk.su>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: xterm, screen and the "Home" and "End" keys
Message-ID:  <1429529502.22004428.1410136841047.JavaMail.root@his.com>
In-Reply-To: <20140905024655.GA51629@admin.sibptus.tomsk.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
| From: "Victor Sudakov" <vas@mpeks.tomsk.su>
| To: "Thomas Dickey" <dickey@his.com>
| Cc: freebsd-questions@freebsd.org
| Sent: Thursday, September 4, 2014 10:46:55 PM
| Subject: Re: xterm, screen and the "Home" and "End" keys
| 
| Thomas Dickey wrote:
| > > > > 
| > > > > alternatively:
| > > > > 
| > > > > 	XTerm*keyboardType: vt220
| > > > 
| > > > (not in "VT100")
| > > 
| > > Works too, thank you.
| > > How did you know?
| > 
| > It was "an educated guess" (I maintain ncurses and xterm)
| 
| Great! Could you try and make another educated guess? ;-) What could
| have changed in FreeBSD between 8.4 and 9.3 that caused this problem?
| 
| I have always used vim+screen on my FreeBSD 8.4 box at work from my
| 9.3-STABLE desktop at home (over ssh, from X). The problem with the
| "Home" and "End" keys arose when I upgraded the work box to 9.3.
| 
| Of course the upgrade involved the update of all ports, so maybe vim
| or screen are to blame and not FreeBSD per se.

termcap or xterm seem like the place to start looking (see explanation),
but I'm not aware of any recent change.

When screen starts, it takes note of the escape sequences for each of the
keys, and maps those into its own sequences.  The sequences you expect for
screen's own look okay.

Since you're _getting_ those sequences, it sounds as if xterm's been changed,
e.g., with a port option to send the VT220-keyboard.  That's a runtime default
that can be overridden with the control/left/mouse menu.  I'd compare the
local / remote xterms' setting on that menu, to see if the misbehaving one
has the "VT220 Keyboard" menu entry selected.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
http://invisible-island.net
ftp://invisible-island.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1429529502.22004428.1410136841047.JavaMail.root>