all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: David Miani <nanothief@gmail.com>
Cc: bug-gnu-emacs@gnu.org, 1279@emacsbugs.donarmstrong.com,
	jasonspiro4@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	[thread overview]
Message-ID: <jwv63n9qvyp.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <200810310239.44166.davidmiani@gmail.com> (David Miani's message of "Fri, 31 Oct 2008 02:39:44 +1000")

> 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







  reply	other threads:[~2008-10-31  3:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877i4ovtfm.fsf@cyd.mit.edu>
2008-10-30 16:39 ` bug#1279: color output from external programs not working by default in eshell David Miani
2008-10-31  3:36   ` Stefan Monnier [this message]
2008-11-01  2:27     ` nanothief
2009-01-22  4:55   ` bug#1279: marked as done (color output from external programs not working by default in eshell) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv63n9qvyp.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=1279@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=jasonspiro4@gmail.com \
    --cc=nanothief@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.