From unknown Tue Jun 17 20:17:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5113 <5113@debbugs.gnu.org> To: bug#5113 <5113@debbugs.gnu.org> Subject: Status: ansi-color-for-comint-mode-on on by default in shell-mode Reply-To: bug#5113 <5113@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:17:25 +0000 retitle 5113 ansi-color-for-comint-mode-on on by default in shell-mode reassign 5113 emacs submitter 5113 Praveen A severity 5113 wishlist thanks From pravi.a@gmail.com Thu Dec 3 01:17:21 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 3 Dec 2009 09:17:21 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.4 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB39HJ8D019589 for ; Thu, 3 Dec 2009 01:17:20 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NG7oN-0005Ox-5B for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 04:17:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NG7oI-0005Is-1a for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 04:17:18 -0500 Received: from [199.232.76.173] (port=51347 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NG7oH-0005Ip-Tw for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 04:17:13 -0500 Received: from mail-yw0-f172.google.com ([209.85.211.172]:51300) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NG7oH-0007vs-Pg for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2009 04:17:13 -0500 Received: by ywh2 with SMTP id 2so1133733ywh.27 for ; Thu, 03 Dec 2009 01:17:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=5gRBF4wMraeiT5+JvS1eU0HzKu6Wkv57agBqVSu4+/s=; b=gaKdmr4PDtmnLW6/QK5J4AgMVoCRjHu347tFZQZs0wVBDmKtSa+pmeta4qfq2Bk6Xz qFeiUj0tCqERxCOWA2ECpyO3FtvbktJj9vC7DupZw1lGPNlBcubVd8s8mVc7xC59J50A jE1UZS0p5+TAMpqpwmETBMFXvpNwKt6dlVLWY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=IPVTSOGbFMJnD28fZ72XRbu3B9dQTB2JczIYgy4+uJiYtAKfVowjsgZ1eH7/EiRQVp dkSUAF8HvDXfCEQtAb4j5hpdJRijeKD0PYaJl28AN+C/Apppj7Aybu6xMgXSjVfUpEgi IrlWxggF5dhgBUN0quyvDDL91GZVzDayEM6D8= MIME-Version: 1.0 Received: by 10.150.46.30 with SMTP id t30mr2444618ybt.50.1259831832751; Thu, 03 Dec 2009 01:17:12 -0800 (PST) Date: Thu, 3 Dec 2009 14:47:12 +0530 Message-ID: <3f2beab60912030117n4005a75w42481261c854c655@mail.gmail.com> Subject: handle shell escape characters (e.g. ESC [ 0) in emacs shell From: Praveen A To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Hi, It seems that when 'ls' is invoked with --color, it output some escape sequences (e.g. ESC [ 0) that are not handled by shell-mode." Ref http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5080#80 p= oint 2 It would be good if emacs shell can handle these escape characters -- even if color is not displayed, the escape characters should be hidden. Regards Praveen --=20 =E0=B4=AA=E0=B5=8D=E0=B4=B0=E0=B4=B5=E0=B5=80=E0=B4=A3=E0=B5=8D=E2=80=8D = =E0=B4=85=E0=B4=B0=E0=B4=BF=E0=B4=AE=E0=B5=8D=E0=B4=AA=E0=B5=8D=E0=B4=B0=E0= =B4=A4=E0=B5=8D=E0=B4=A4=E0=B5=8A=E0=B4=9F=E0=B4=BF=E0=B4=AF=E0=B4=BF=E0=B4= =B2=E0=B5=8D=E2=80=8D I know my rights; I want my phone call! What use is a phone call, if you are unable to speak? (as seen on /.) Join The DRM Elimination Crew Now! http://fci.wikia.com/wiki/Anti-DRM-Campaign From rgm@gnu.org Thu Dec 3 09:25:12 2009 Received: (at 5113) by emacsbugs.donarmstrong.com; 3 Dec 2009 17:25:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.1 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB3HPBae031967 for <5113@emacsbugs.donarmstrong.com>; Thu, 3 Dec 2009 09:25:12 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1NGFQS-0000ij-VP; Thu, 03 Dec 2009 12:25:09 -0500 From: Glenn Morris To: Praveen A Cc: 5113@debbugs.gnu.org Subject: Re: bug#5113: handle shell escape characters (e.g. ESC [ 0) in emacs shell References: <3f2beab60912030117n4005a75w42481261c854c655@mail.gmail.com> X-Spook: clandestine Baranyi espionage Albright Bin Laden ISEC JPL X-Ran: gJLnyXqgDdo{v5]_aMPucFtt35x?AxHEb81]]J3kxH4c (Praveen A.'s message of "Thu, 3 Dec 2009 14:47:12 +0530") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Praveen A wrote: > It seems that when 'ls' is invoked with --color, it output some > escape sequences (e.g. ESC [ 0) that are not handled by shell-mode. The Emacs manual and FAQ suggest (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) From monnier@iro.umontreal.ca Thu Dec 3 17:31:40 2009 Received: (at 5113) by emacsbugs.donarmstrong.com; 4 Dec 2009 01:31:40 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.183]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB41VcIT014570 for <5113@emacsbugs.donarmstrong.com>; Thu, 3 Dec 2009 17:31:40 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEAKr0F0tFpZ1E/2dsb2JhbACBTtRzhDIEihk X-IronPort-AV: E=Sophos;i="4.47,338,1257138000"; d="scan'208";a="50652833" Received: from 69-165-157-68.dsl.teksavvy.com (HELO pastel.home) ([69.165.157.68]) by ironport2-out.pppoe.ca with ESMTP; 03 Dec 2009 20:31:33 -0500 Received: by pastel.home (Postfix, from userid 20848) id DD44886C4; Thu, 3 Dec 2009 20:31:32 -0500 (EST) From: Stefan Monnier To: Glenn Morris Cc: 5113@debbugs.gnu.org, Praveen A Subject: Re: bug#5113: handle shell escape characters (e.g. ESC [ 0) in emacs shell Message-ID: References: <3f2beab60912030117n4005a75w42481261c854c655@mail.gmail.com> Date: Thu, 03 Dec 2009 20:31:32 -0500 In-Reply-To: (Glenn Morris's message of "Thu, 03 Dec 2009 12:25:07 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >> It seems that when 'ls' is invoked with --color, it output some >> escape sequences (e.g. ESC [ 0) that are not handled by shell-mode. > The Emacs manual and FAQ suggest > (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) Any objection to enabling it by default? Stefan From rgm@gnu.org Sat Dec 5 12:27:29 2009 Received: (at control) by emacsbugs.donarmstrong.com; 5 Dec 2009 20:27:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-5.1 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5KRRAk026974 for ; Sat, 5 Dec 2009 12:27:29 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1NH1Dz-0005Nz-2c; Sat, 05 Dec 2009 15:27:27 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19226.49711.8938.436942@fencepost.gnu.org> Date: Sat, 5 Dec 2009 15:27:27 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: white X-Ran: |vQoXY15.#B7Whh7([OW|CS],!n9Ie^w,?!c),^>H8U^Q1Bu^)-[rqP; Sat, 5 Dec 2009 13:05:58 -0800 Received: from furry (dhcp128036204110.central.yale.edu [128.36.204.110]) (authenticated bits=0) by pantheon-po42.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id nB5L5pKK019559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 5 Dec 2009 16:05:51 -0500 Received: by furry (Postfix, from userid 1000) id 62524C071; Sat, 5 Dec 2009 16:05:51 -0500 (EST) From: Chong Yidong To: Stefan Monnier Cc: Glenn Morris , 5113-done@debbugs.gnu.org, Praveen A Subject: Re: bug#5113: handle shell escape characters (e.g. ESC [ 0) in emacs shell Date: Sat, 05 Dec 2009 16:05:49 -0500 Message-ID: <87my1x168i.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) > >> It seems that when 'ls' is invoked with --color, it output some > >> escape sequences (e.g. ESC [ 0) that are not handled by shell-mode. > > > The Emacs manual and FAQ suggest > > > (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) > > Any objection to enabling it by default? I just enabled it by default in the repository. From unknown Tue Jun 17 20:17:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 03 Jan 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator