Date: Tue, 9 Nov 2010 11:03:19 +0100 From: Ed Schouten <ed@80386.nl> To: Eir Nym <eirnym@gmail.com> Cc: FreeBSD Mail Lists <freebsd-current@freebsd.org> Subject: Re: Syscons and termcap Message-ID: <20101109100319.GV2054@hoeg.nl> In-Reply-To: <AANLkTi=Sd-VpqcBGHy%2BNATC9qL=YY2CcJ1aQ8O3XBk07@mail.gmail.com> References: <AANLkTi=Sd-VpqcBGHy%2BNATC9qL=YY2CcJ1aQ8O3XBk07@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--vXO+wElmrbrjQnTC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Eir, * Eir Nym <eirnym@gmail.com>, 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 <ed@80386.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101109100319.GV2054>