Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Aug 2012 11:46:20 +0100
From:      Steve O'Hara-Smith <steve@sohara.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Does 9.0 honor TERM settings
Message-ID:  <20120824114620.01a829aa.steve@sohara.org>
In-Reply-To: <alpine.BSF.2.00.1208240507390.3633@abbf.ynefrvtuare.pbz>
References:  <alpine.BSF.2.00.1208240056270.1299@abbf.ynefrvtuare.pbz> <20120824080544.9bca4996.steve@sohara.org> <alpine.BSF.2.00.1208240308540.3282@abbf.ynefrvtuare.pbz> <20120824095533.7ff3bc23.steve@sohara.org> <alpine.BSF.2.00.1208240507390.3633@abbf.ynefrvtuare.pbz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Aug 2012 05:11:19 -0500 (CDT)
Lars Eighner <luvbeastie@larseighner.com> wrote:

> On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
> 
> > On Fri, 24 Aug 2012 03:13:09 -0500 (CDT)
> > Lars Eighner <luvbeastie@larseighner.com> wrote:
> >
> >> On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
> >>
> >>> On Fri, 24 Aug 2012 01:18:23 -0500 (CDT)
> >>> Lars Eighner <luvbeastie@larseighner.com> wrote:
> >>>
> >>>>
> >>>> Does 9.0 honor TERM settings?
> >>>>
> >>>> It appears to me it does not.  Although I set TERM=cons25l1
> >>>> in .profile (running bash) and have verified that it is set to that
> >>>> value with SET, it appears to me that the function keys are mapped
> >>>> to weird xterm-like strings instead of their ANSI values (example:
> >>>> F7 = E[18~ not E[S).
> >>>
> >>> 	The TERM environment variable is supposed to describe the
> >>> terminal not control it.
> >>
> >>
> >> Well, then, where is the setting that makes the F7 key send E[18~
> >> instead of the standard E[S?
> >
> > 	In the kernel config there's an option TEKEN_CONS25 which will
> > build the console terminal emulator in CONS25 mode. You'll need a
> > custom kernel of course.
> 
> I find it really interesting that this change which broke just about every
> critical application I run was not mentioned in the release notes or
> UPDATING.

	Bizarre - no well written application should break unless of course
you have TERM set to something that doesn't match what the terminal does.
The whole TERM termcap/terminfo/curses mechanism is designed to support
terminal independent applications.

> > 	I'm curious though - why ? As long as TERM is set correctly
> > anything that uses curses will handle the keyboard and screen correctly.
> 
> If 9.0 had not broken my most important applications, I wouldn't be
> asking.

	Which applications - and are they still broken with the right TERM
settings (TERM=xterm) ?

-- 
Steve O'Hara-Smith                          |   Directable Mirror Arrays
C:>WIN                                      | A better way to focus the sun
The computer obeys and wins.                |    licences available see
You lose and Bill collects.                 |    http://www.sohara.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120824114620.01a829aa.steve>