From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#27407: 25.2; SGR reset is ignored if it terminates Eshell's output Date: Sun, 18 Jun 2017 13:50:20 -0400 Message-ID: <87poe1qj6r.fsf@users.sourceforge.net> References: <20170617113103.GB7315@gmail.com> <87a856schh.fsf@users.sourceforge.net> <20170618064917.GB3761@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497808153 29423 195.159.176.226 (18 Jun 2017 17:49:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Jun 2017 17:49:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 27407@debbugs.gnu.org To: Pierre Neidhardt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 18 19:49:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMeJw-0007KZ-Sh for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 19:49:09 +0200 Original-Received: from localhost ([::1]:39120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMeK1-0006Ew-1w for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Jun 2017 13:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMeJv-0006Er-6U for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 13:49:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMeJq-0000bw-7s for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 13:49:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52640) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dMeJq-0000br-2m for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 13:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dMeJp-0002Gm-Q7 for bug-gnu-emacs@gnu.org; Sun, 18 Jun 2017 13:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jun 2017 17:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27407 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27407-submit@debbugs.gnu.org id=B27407.14978081338702 (code B ref 27407); Sun, 18 Jun 2017 17:49:01 +0000 Original-Received: (at 27407) by debbugs.gnu.org; 18 Jun 2017 17:48:53 +0000 Original-Received: from localhost ([127.0.0.1]:55315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMeJg-0002GI-R4 for submit@debbugs.gnu.org; Sun, 18 Jun 2017 13:48:52 -0400 Original-Received: from mail-io0-f182.google.com ([209.85.223.182]:36367) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dMeJe-0002G3-IZ for 27407@debbugs.gnu.org; Sun, 18 Jun 2017 13:48:50 -0400 Original-Received: by mail-io0-f182.google.com with SMTP id y77so52459878ioe.3 for <27407@debbugs.gnu.org>; Sun, 18 Jun 2017 10:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Y413IVIhK5JghfcWIDK2IGlEVP9LQR3rLKKFYJMV/Z0=; b=Jq9zyt7EAIWvqV6AncSHSYd60Sz6+MSlA/o59akFAnK0JOEeyt7op3CQ/NNLi8OYgl rYuCG8cL7/UGgTk5FG/y6fELZEOE7lr03Q7ln0nRs9lmBmmVjSh4AzvuliuiMEIWWyT4 d/6RIAvY0o6s89EyhtgQ3qXgpXQg4V96TVYLZB4VUoumG8mLlsJEFCHRz6I2/oUHZCaj 0UzfEn/xw6kt6ialfhyvspx//7vsLY0DLAeSolfwmEr7U13LVePbHcNLUZ+cdTTU0O1M +1xVxzKuZa0eLpToOobx/SVNHu99NTlBQn3wfpOSnduxyS5gY4LQ6iLCKUqbmvp1h1VL 5l4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Y413IVIhK5JghfcWIDK2IGlEVP9LQR3rLKKFYJMV/Z0=; b=eBiD9x422coxfL2uQYPTe+54TFaqxB9B9Mptf9Yd8mi5YQVGP/w87u549hNbbJdXru ea+AfnrlvqyIZODrKok6/+29kpgUdDD2SR8lZGsT89wNoKHWw3Wb2dazoUPrFCnOWDmX Kd//gPJ/khHqyj2SIo30WkFlHphbRQLcplYPD2KzFy5qiwJlgKbtd3Vu3+xJlpHS04Dq K5xQl3YMm3sT7EnkB+wNQsw26hiY6dgWEbRy201gnBw8xN0FRKqSNPtvsKsB6ygwm0rH 137QyjOPvHHBsNESJizC3923Rq7H6N+FgppkT//vhbZDsoG/5HG2vg5nUrvw8CFqWB4O 01SQ== X-Gm-Message-State: AKS2vOxr8NuLlAthebuX9/DgToYf3MYnyEDpgT4zNm3791LKlZzlF3ej 7rZX6jSS+RhO8jqV X-Received: by 10.107.137.166 with SMTP id t38mr18317965ioi.79.1497808124845; Sun, 18 Jun 2017 10:48:44 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id j62sm4467155iod.29.2017.06.18.10.48.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Jun 2017 10:48:43 -0700 (PDT) In-Reply-To: <20170618064917.GB3761@gmail.com> (Pierre Neidhardt's message of "Sun, 18 Jun 2017 07:49:17 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133731 Archived-At: Pierre Neidhardt writes: > On 17-06-17 14:19:54, npostavs@users.sourceforge.net wrote: > > I haven't tried your patch, but in the general case Eshell should not extend the > ANSI coloring to the prompt, SGR reset or not. I.e. the following should not > color the prompt: > > (insert "echo \"\e[33mhello") My patch does not solve this scenario, but on the other hand, when I try this experiment in a terminal with bash, not putting a reset does give a coloured prompt, i.e., in the following the 2nd "~/src$" is in yellow: ~/src$ echo $'\e[33mhello' hello ~/src$ So should eshell really be any different?