[haiku-bugs] Re: [Haiku] #9636: Error opening terminal: xterm-256color

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Mon, 08 Apr 2013 18:16:34 -0000

#9636: Error opening terminal: xterm-256color
-------------------------------------+----------------------------
   Reporter:  humdinger              |      Owner:  siarzhuk
       Type:  bug                    |     Status:  closed
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Terminal  |    Version:  R1/Development
 Resolution:  no change required     |   Keywords:  xterm, nano
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by siarzhuk):

 Replying to [comment:5 bonefish]:
 > > > To my knowledge that's what pretty much every OS and distribution
 that matters does as well.
 > >
 > > Corresponding to Thomas E. Dickey: http://invisible-
 island.net/ncurses/ncurses.faq.html
 > >
 > > {{{
 > > "Additionally, Mac OS X 10.7 is reported to use xterm-256color as a
 default $TERM value."
 > > }}}
 >
 > I stand corrected (though one could ask whether MacOS actually matters
 wrt. terminals ;-)).

 Not less than Haiku. ;-)

 > > So looks like I'm not alone who think this way.
 >
 > No doubt, setting the correct terminal type would be the best solution,
 *if* every possible remote client supported that type as well. But
 obviously that is not the case, as the existence of this ticket proves.
 Since major Linux distributions apparently alias "xterm" to "xterm-
 256color" and set `TERM` to "xterm", I think it is safe enough to do and
 the most convenient option for users ATM. We could switch back to "xterm-
 256color" later when we feel support for it has improved sufficiently.

 IMO, we will be blamed anyway, either we will define TERM to "xterm" or to
 "xterm-256color". In the first case local vim users will be disappointed,
 in the second - lovers of ssh sessions to servers with outdated terminfo.
 As soon as we fix this issue by reverting to xterm - the next week come
 someone and complain about bleached xoria256 in vim. ;-)

 There are also dirty way - hack the xterm entry and extend colors and
 color pairs entries to 256 and 32767 correspondent. ;-) But that breaks
 the hypothetical consistency with the "reference" xterm in the outside
 world, that anyway nobody care about.

 BTW, that (modify TERM per session) looks like yet another feature for
 Terminal Profiles mentioned here: https://dev.haiku-
 os.org/ticket/5030#comment:8

--
Ticket URL: <http://dev.haiku-os.org/ticket/9636#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: