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


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to