GNU bug report logs - #1279
color output from external programs not working by default in eshell

Previous Next

Package: emacs;

Reported by: David Miani <nanothief <at> gmail.com>

Date: Thu, 30 Oct 2008 16:50:03 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: David Miani <nanothief <at> gmail.com>
Cc: 1279 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org,
        jasonspiro4 <at> gmail.com
Subject: bug#1279: color output from external programs not working by default in eshell
Date: Thu, 30 Oct 2008 23:36:24 -0400
> When running eshell, using an external program that outputs in color results 
> in the raw terminal escape codes being displayed. For example,
> ~ $ yaourt -Ss emacs
> ^[[3m^[[1;32mextra/^[[0m^[[0m^[[1memacs ^[[1;32m22.3-1 
> ^[[7m^[[1;33m[installed]^[[0m ^[[1;34m^[[0m
> ^[[3m     The Emacs Editor^[[0m
> ^[[3m^[[1;32mextra/^[[0m^[[0m^[[1msnd ^[[1;32m10.1-1^[[0m ^[[1;34m^[[0m
> ^[[3m     Snd is the emacs of sound editor^[[0m
> ^[[3m^[[1;32mextra/^[[0m^[[0m^[[1mtexmacs ^[[1;32m1.0.6.14-1^[[0m 
> ^[[1;34m^[[0m
> ^[[3m     GNU TeXmacs is a free scientific text editor, which was both 
> inspired by TeX^[[0m
> ...

FWIW, I consider it a bug for such programs to output ANSI escape
sequences for color unless they have some concrete evidence that the
terminal to which they talk does understand those escape sequences.

What does $TERM say in your shell?  Is this terminal type known to
support color?  If so, specifying such a terminal type is an error and
we try and figure out where it comes from so we can fix it.


        Stefan




This bug report was last modified 16 years and 125 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.