Up through FreeBSD 8.x, the ttyvN consoles had a TERM setting of cons25. On FreeBSD 9.n, it appears to be xterm for ttyv0, but it's still cons25 for ttyv1-ttyv8 (even though they all appear to act like xterms). Not surprisingly, this leads to less than desirable results when trying to run vi (or other such programs) on ttyv1 through ttyv8, unless you remember to setenv TERM xterm. Why did we change from cons25 to xterm? How can we get all the ttyvNs to get the correct TERM setting? -- George Mitchell
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/08/12 10:00, George Mitchell wrote:> Up through FreeBSD 8.x, the ttyvN consoles had a TERM setting of cons25. > On FreeBSD 9.n, it appears to be xterm for ttyv0, but it's still cons25 > for ttyv1-ttyv8 (even though they all appear to act like xterms). Not > surprisingly, this leads to less than desirable results when trying to > run vi (or other such programs) on ttyv1 through ttyv8, unless you > remember to setenv TERM xterm. > > Why did we change from cons25 to xterm? How can we get all the ttyvNs > to get the correct TERM setting? -- George MitchellThe console driver has been replaced/updated. You likely missed updating your /etc/ttys, imb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk/5lP0ACgkQQv9rrgRC1JKkLQCeLzOuP1oCaplYpBAQIgFsU82r jwMAoKgHFQvdvSBK81Pf1wrOCuEJmkVD =YADR -----END PGP SIGNATURE-----
On Sun, 08 Jul 2012 16:00:16 +0200, George Mitchell <george+freebsd@m5p.com> wrote:> Up through FreeBSD 8.x, the ttyvN consoles had a TERM setting of cons25. > On FreeBSD 9.n, it appears to be xterm for ttyv0, but it's still cons25 > for ttyv1-ttyv8 (even though they all appear to act like xterms). Not > surprisingly, this leads to less than desirable results when trying to > run vi (or other such programs) on ttyv1 through ttyv8, unless you > remember to setenv TERM xterm. > > Why did we change from cons25 to xterm? How can we get all the ttyvNs > to get the correct TERM setting? -- George MitchellWhat is in your /etc/ttys? This is the ttys file on 9-STABLE on amd64: http://svnweb.freebsd.org/base/stable/9/etc/etc.amd64/ttys?revision=225736&view=markup&pathrev=238244 Regards, Ronald.