From owner-freebsd-questions@FreeBSD.ORG Mon Sep 8 00:50:49 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93336C24 for ; Mon, 8 Sep 2014 00:50:49 +0000 (UTC) Received: from smtp-nf-201.his.com (smtp-nf-201.his.com [216.194.248.24]) by mx1.freebsd.org (Postfix) with ESMTP id 52EA61286 for ; Mon, 8 Sep 2014 00:50:48 +0000 (UTC) Received: from cuda201.his.com (cuda201.his.com [216.194.248.226]) by smtp-nf-201.his.com (Postfix) with ESMTPS id B481E62090 for ; Sun, 7 Sep 2014 20:40:46 -0400 (EDT) X-ASG-Debug-ID: 1410136845-061c410feed7d0b0001-jLrpzn Received: from smtp-nf-202.his.com (smtp-nf-202.his.com [216.194.251.28]) by cuda201.his.com with ESMTP id L3rQ17csLsv6ZH0y; Sun, 07 Sep 2014 20:40:45 -0400 (EDT) X-Barracuda-Envelope-From: dickey@his.com X-Barracuda-Apparent-Source-IP: 216.194.251.28 Received: from mail-sterling.his.com (mail-sterling.his.com [216.194.248.141]) by smtp-nf-202.his.com (Postfix) with ESMTP id EACFA60183; Sun, 7 Sep 2014 20:40:45 -0400 (EDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail-sterling.his.com (Postfix) with ESMTP id D37143F80001; Sun, 7 Sep 2014 20:40:44 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail-sterling.his.com Received: from mail-sterling.his.com ([127.0.0.1]) by localhost (mail-sterling.his.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0mVAKnqiTPuE; Sun, 7 Sep 2014 20:40:41 -0400 (EDT) Received: from mail-sterling.his.com (mail-sterling.his.com [216.194.248.141]) by mail-sterling.his.com (Postfix) with ESMTP id 250D33F80005; Sun, 7 Sep 2014 20:40:41 -0400 (EDT) Date: Sun, 7 Sep 2014 20:40:41 -0400 (EDT) From: Thomas Dickey To: Victor Sudakov Message-ID: <1429529502.22004428.1410136841047.JavaMail.root@his.com> In-Reply-To: <20140905024655.GA51629@admin.sibptus.tomsk.ru> Subject: Re: xterm, screen and the "Home" and "End" keys MIME-Version: 1.0 X-ASG-Orig-Subj: Re: xterm, screen and the "Home" and "End" keys Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [96.231.164.93] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Mac)/7.2.6_GA_2926) X-Barracuda-Connect: smtp-nf-202.his.com[216.194.251.28] X-Barracuda-Start-Time: 1410136845 X-Barracuda-URL: http://spam.his.com:80/cgi-mod/mark.cgi Received-SPF: pass (his.com: domain of dickey@his.com designates 216.194.248.141 as permitted sender) X-Virus-Scanned: by bsmtpd at his.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.9269 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 00:50:49 -0000 ----- Original Message ----- | From: "Victor Sudakov" | To: "Thomas Dickey" | 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 http://invisible-island.net ftp://invisible-island.net