From owner-freebsd-current@FreeBSD.ORG Tue Nov 9 10:03:21 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3ECAC1065672 for ; Tue, 9 Nov 2010 10:03:21 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id CDDC68FC15 for ; Tue, 9 Nov 2010 10:03:20 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id B33602A28CEA; Tue, 9 Nov 2010 11:03:19 +0100 (CET) Date: Tue, 9 Nov 2010 11:03:19 +0100 From: Ed Schouten To: Eir Nym Message-ID: <20101109100319.GV2054@hoeg.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vXO+wElmrbrjQnTC" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mail Lists Subject: Re: Syscons and termcap X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 10:03:21 -0000 --vXO+wElmrbrjQnTC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Eir, * Eir Nym , 20101109 05:10: > I've compiled -CURRENT kernel with UTF-8 and CONS25 support. ( r214751 ) >=20 > in xterm emulation mode I have problems with bindings for some keys, > such as Home > If I start vis(1) and press Home, I always get "^[[H" sequence instead > of "^[OH" which is defined in termcap (5) file. >=20 > I get correct results after switching to cons25. >=20 > What do I wrong ? Does sc(4) driver in current correctly support > xterm-like key bindings? Yes, but not only must you set TERM=3Dxterm, you must also remove TEKEN_CONS25 from your kernel configuration or run vidcontrol -T xterm on that specific window. There is almost no reason why anyone would want to use the TEKEN_CONS25 option. Depending on whether the terminal is switched to cursor keys mode, it will return ^[[H or ^[OH. See /sys/teken/teken.c, teken_get_sequence(). Greetings, --=20 Ed Schouten WWW: http://80386.nl/ --vXO+wElmrbrjQnTC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzZHGcACgkQ52SDGA2eCwULIgCbBETza1mFAUKISh141T9f+bjt 2bcAnA3jJ0ZwqcabordSZZGJ/tTPdZGj =1yLw -----END PGP SIGNATURE----- --vXO+wElmrbrjQnTC--