[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Screen and 256 Colors, again :)
From: |
Erik Osheim |
Subject: |
Re: Screen and 256 Colors, again :) |
Date: |
Thu, 23 Oct 2008 14:56:12 -0400 |
On Wed, Oct 22, 2008 at 08:08:09PM -0400, Samer Atiani wrote:
> An example of my problem: When I do 'ls' outside of screen, it would print
> each directory in a bright blue color. I ran 'script' and then ls, and here
> is an example of how it would output a directory called "etc":
>
> ^[[01;34metc^[[00m
>
> Inside of screen, that same directory would be output like this:
>
> ^[[1m^[[38;5;4m^[[94metc^[[0m
You forgot to specify what terminal emulator (or terminal) you are
using. From my xterm, those two sequences display identically.
As I understand it, the "^[[1m" part should turn bold on until it is
turned off later by "^[[0m". Your terminal emulator may not correctly
be combining the various state-changes that the three initial escape
sequences specify.
I tested this from bash via:
printf "\033[01;34mfoo\n\033[00m"
printf "\033[1m\033[38;5;4m\033[94mfoo\n\033[0m"
It worked correctly inside of screen (attached to xterm). Screen's TERM
is 'screen-bce', and xterm's TERM is 'xterm'.
-- Erik