From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1279: color output from external programs not working by default in eshell Date: Thu, 30 Oct 2008 23:36:24 -0400 Message-ID: References: <200810310239.44166.davidmiani@gmail.com> Reply-To: Stefan Monnier , 1279@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1225425021 2808 80.91.229.12 (31 Oct 2008 03:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2008 03:50:21 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, 1279@emacsbugs.donarmstrong.com, jasonspiro4@gmail.com To: David Miani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 31 04:51:23 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kvl2g-0001aU-5l for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Oct 2008 04:51:22 +0100 Original-Received: from localhost ([127.0.0.1]:54362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kvl1Z-0003qc-Jl for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Oct 2008 23:50:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kvl1V-0003pC-Cz for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:50:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kvl1T-0003no-Fk for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:50:08 -0400 Original-Received: from [199.232.76.173] (port=44703 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kvl1T-0003nk-9C for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:50:07 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51554) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kvl1T-00027q-15 for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:50:07 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9V3o3BL012617; Thu, 30 Oct 2008 20:50:04 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9V3j3wM011338; Thu, 30 Oct 2008 20:45:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 31 Oct 2008 03:45:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1279 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122542419310042 (code B ref -1); Fri, 31 Oct 2008 03:45:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 31 Oct 2008 03:36:33 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9V3aTQr010036 for ; Thu, 30 Oct 2008 20:36:30 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KvkoG-0007gP-RF for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:36:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KvkoF-0007fm-EJ for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:36:28 -0400 Original-Received: from [199.232.76.173] (port=56945 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvkoF-0007fR-6r for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:36:27 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:54051 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KvkoF-0008W3-30 for bug-gnu-emacs@gnu.org; Thu, 30 Oct 2008 23:36:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEAHcaCklMCqyo/2dsb2JhbACBdslhg1GBDg X-IronPort-AV: E=Sophos;i="4.33,519,1220241600"; d="scan'208";a="29113168" Original-Received: from 76-10-172-168.dsl.teksavvy.com (HELO pastel.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 30 Oct 2008 23:36:24 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9CFA58E73; Thu, 30 Oct 2008 23:36:24 -0400 (EDT) In-Reply-To: <200810310239.44166.davidmiani@gmail.com> (David Miani's message of "Fri, 31 Oct 2008 02:39:44 +1000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 30 Oct 2008 23:50:08 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22055 Archived-At: > 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