Re: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 01:18:23 -0500 (CDT)
Lars Eighner luvbeas...@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.

-- 
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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Lars Eighner

On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:


On Fri, 24 Aug 2012 01:18:23 -0500 (CDT)
Lars Eighner luvbeas...@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?


--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 03:13:09 -0500 (CDT)
Lars Eighner luvbeas...@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 luvbeas...@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'm curious though - why ? As long as TERM is set correctly
anything that uses curses will handle the keyboard and screen correctly.

-- 
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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Lars Eighner

On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:


On Fri, 24 Aug 2012 03:13:09 -0500 (CDT)
Lars Eighner luvbeas...@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 luvbeas...@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.



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.



--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Lars Eighner

On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:


On Fri, 24 Aug 2012 03:13:09 -0500 (CDT)
Lars Eighner luvbeas...@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 luvbeas...@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 grepped the entire /usr/src/sys/amd64/conf directory.  There is no
TEKEN_CONS25 or TEKEN or CONS25.  Exactly where is this documented?


--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 05:11:19 -0500 (CDT)
Lars Eighner luvbeas...@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 luvbeas...@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 luvbeas...@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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 05:20:18 -0500 (CDT)
Lars Eighner l...@larseighner.com wrote:

 I grepped the entire /usr/src/sys/amd64/conf directory.  There is no
 TEKEN_CONS25 or TEKEN or CONS25.  Exactly where is this documented?

/usr/src/sys/conf/NOTES is where I found it.

-- 
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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Thomas Dickey
On Fri, Aug 24, 2012 at 11:38:38AM +0200, J B wrote:
  Well, then, where is the setting that makes the F7 key send E[18~ instead
  of the standard E[S?
 
 I think you will find a hint here:
 https://wiki.archlinux.org/index.php/Home_and_End_keys_not_working

it's not much of a hint (it's Linux-specific, and like most of the Arch
wiki - not insightful).

(other responses in the thread seem to have answered the question)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpL3GAW9IKHM.pgp
Description: PGP signature


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Lars Eighner

On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:


On Fri, 24 Aug 2012 05:20:18 -0500 (CDT)
Lars Eighner l...@larseighner.com wrote:


I grepped the entire /usr/src/sys/amd64/conf directory.  There is no
TEKEN_CONS25 or TEKEN or CONS25.  Exactly where is this documented?


/usr/src/sys/conf/NOTES is where I found it.


Grepped /usr/src/sys/conf/* and did not find it.

I see from google that something seems to have been added to HEAD and its
UPDATING, but there is nothing of the sort in 9.0 RELEASE - p4.

I really should have known better by now than to upgrade to a X.0 - perhaps
by X.2 or X.3 they will have fix most of the stuff they broke with X.0.

Fortunately, I have learned enough to try upgrades on the mirror and not on
the production disc.


--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Lars Eighner

On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:


On Fri, 24 Aug 2012 05:11:19 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:



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) ?


Joe, most, lynx (which is also my file manager) in functions involving
function keys.  I could, of course, remap all of the macros, but that would
be silly since I have about five pages of keymapping in .Xdefaults to
make xterm in X emulate cons25.

But that does give me an idea for an emergency solution -- perhaps I can run
my console applications in an xterm in X since I made it emulate cons25.  Of
course there is nothing in X that will put 4000 characters (80x25) on the
screen at once as legibly as VGA fonts do - which is why I use console
applications to begin with - so that is strictly a get out of a jam
solution, not practical for production.


--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 05:58:36 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:

 On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
 
  On Fri, 24 Aug 2012 05:20:18 -0500 (CDT)
  Lars Eighner l...@larseighner.com wrote:
 
  I grepped the entire /usr/src/sys/amd64/conf directory.  There is no
  TEKEN_CONS25 or TEKEN or CONS25.  Exactly where is this documented?
 
  /usr/src/sys/conf/NOTES is where I found it.
 
 Grepped /usr/src/sys/conf/* and did not find it.
 
 I see from google that something seems to have been added to HEAD and its
 UPDATING, but there is nothing of the sort in 9.0 RELEASE - p4.

It's there on my 9.0-RELEASE-p4 boxes. In /etc/freebsd-update.conf
do you have src among the components to update ?

 I really should have known better by now than to upgrade to a X.0 -
 perhaps by X.2 or X.3 they will have fix most of the stuff they broke
 with X.0.

I've yet to see any breakage, do your applications really break
with TERM=xterm on the console ?

 Fortunately, I have learned enough to try upgrades on the mirror and not
 on the production disc.

Well yes - no untested updates should ever hit a production system,
that's what the QA boxes are for.

-- 
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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Lars Eighner

On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:


On Fri, 24 Aug 2012 05:58:36 -0500 (CDT)
Lars Eighner luvbeas...@larseighner.com wrote:


On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:


On Fri, 24 Aug 2012 05:20:18 -0500 (CDT)
Lars Eighner l...@larseighner.com wrote:


I grepped the entire /usr/src/sys/amd64/conf directory.  There is no
TEKEN_CONS25 or TEKEN or CONS25.  Exactly where is this documented?


/usr/src/sys/conf/NOTES is where I found it.


Grepped /usr/src/sys/conf/* and did not find it.

I see from google that something seems to have been added to HEAD and its
UPDATING, but there is nothing of the sort in 9.0 RELEASE - p4.


It's there on my 9.0-RELEASE-p4 boxes. In /etc/freebsd-update.conf
do you have src among the components to update ?


I have never been able to get update to work.  I cvsup the source tree
(which I suppose is now really serviced by subversion).


I really should have known better by now than to upgrade to a X.0 -
perhaps by X.2 or X.3 they will have fix most of the stuff they broke
with X.0.


I've yet to see any breakage, do your applications really break
with TERM=xterm on the console ?


Only the essential stuff: joe, most, lynx.  Of course things which do not
use any function keys (including the movement keys) are not affected.


Fortunately, I have learned enough to try upgrades on the mirror and not
on the production disc.


Well yes - no untested updates should ever hit a production system,
that's what the QA boxes are for.


also the -V switch doesn't give such good results in mergemaster

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Does 9.0 honor TERM settings

2012-08-24 Thread Steve O'Hara-Smith
On Fri, 24 Aug 2012 06:12:57 -0500 (CDT)
Lars Eighner l...@larseighner.com wrote:

 On Fri, 24 Aug 2012, Steve O'Hara-Smith wrote:
 
  On Fri, 24 Aug 2012 05:11:19 -0500 (CDT)
  Lars Eighner luvbeas...@larseighner.com wrote:
 
  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) ?
 
 Joe, most, lynx (which is also my file manager) in functions involving
 function keys.  I could, of course, remap all of the macros, but that
 would be silly since I have about five pages of keymapping in .Xdefaults
 to make xterm in X emulate cons25.

You have something bizarrely wrong on your machine. Lynx works
perfectly in an xterm without any keymapping, it's a curses application so
it should do and it does. I suspect you have something forcing TERM=CONS25
into the environment - you'd be well served by finding and removing it.
Nothing apart from the curses library should ever need to care what the
terminal type is provided TERM matches reality.

-- 
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/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org