[haiku-bugs] Re: [Haiku] #6510: terminal not handling color sequences properly

  • From: "tidux" <trac@xxxxxxxxxxxx>
  • Date: Fri, 10 Feb 2012 04:08:30 -0000

#6510: terminal not handling color sequences properly
-------------------------------------+----------------------------
   Reporter:  augiedoggie            |      Owner:  siarzhuk
       Type:  bug                    |     Status:  assigned
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Terminal  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------

Comment (by tidux):

 I've been having color issues for ages, so I tried messing with the $TERM
 setting.  For example, Vim syntax highlighting still doesn't work properly
 with the default TERM=xterm, and irssi on my Linux server got garbled as
 heck.  Fortunately, setting TERM=xterm-color fixed every issue I've had
 apart from GNU screen, which I think I can chalk up to GNU screen being a
 buggy pile of spaghetti code.  My initial workaround was to put "export
 TERM=xterm-color" in my ~/.bash_profile - but that's a crappy fix.  I
 poked around the Terminal source code and found the place it was set in
 Shell.cpp.  The file I'm about to attach is a simple patch to put that fix
 in the source code instead of requiring editing config files like we're on
 Unix.

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

Other related posts: