From unknown Sat Jun 21 03:24:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5113: handle shell escape characters (e.g. ESC [ 0) in emacs shell Reply-To: Praveen A , 5113@debbugs.gnu.org Resent-From: Praveen A Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 03 Dec 2009 09:25:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 5113 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125983184119593 (code B ref -1); Thu, 03 Dec 2009 09:25:06 +0000 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> 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 unknown Sat Jun 21 03:24:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5113: handle shell escape characters (e.g. ESC [ 0) in emacs shell Reply-To: Glenn Morris , 5113@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 03 Dec 2009 17:30:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5113 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5113-submit@emacsbugs.donarmstrong.com id=B5113.125986111332002 (code B ref 5113); Thu, 03 Dec 2009 17:30:04 +0000 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 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 unknown Sat Jun 21 03:24:37 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5113: handle shell escape characters (e.g. ESC [ 0) in emacs shell Reply-To: Stefan Monnier , 5113@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 04 Dec 2009 01:40:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5113 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5113-submit@emacsbugs.donarmstrong.com id=B5113.125989030014573 (code B ref 5113); Fri, 04 Dec 2009 01:40:04 +0000 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 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 Subject: bug#5113 closed by Chong Yidong (Re: bug#5113: handle shell escape characters (e.g. ESC [ 0) in emacs shell) Message-ID: References: <87my1x168i.fsf@stupidchicken.com> <3f2beab60912030117n4005a75w42481261c854c655@mail.gmail.com> X-Emacs-PR-Message: they-closed 5113 X-Emacs-PR-Package: emacs Reply-To: 5113@debbugs.gnu.org Date: Sat, 05 Dec 2009 21:10:07 +0000 Content-Type: multipart/mixed; boundary="----------=_1260047407-32328-1" This is a multi-part message in MIME format... ------------=_1260047407-32328-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #5113: ansi-color-for-comint-mode-on on by default in shell-mode It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 5113: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5113 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1260047407-32328-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5113-done) by emacsbugs.donarmstrong.com; 5 Dec 2009 21:05:58 +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=-1.9 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pantheon-po42.its.yale.edu (pantheon-po42.its.yale.edu [130.132.50.101]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5L5vVk031975 for <5113-done@emacsbugs.donarmstrong.com>; 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. ------------=_1260047407-32328-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1260047407-32328-1--