From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#12792: 24.2.50; shell-mode renders all its output in a yellow face Date: Sun, 4 Nov 2012 19:23:43 -0800 Message-ID: <20121104192343.1f243455@shorty.local> References: <871ugbxdyr.fsf@secretsauce.net> <85r4oazoh4.fsf@iznogoud.viz> <83y5ii4pfw.fsf@gnu.org> <85d2zuzhxe.fsf@iznogoud.viz> <85hap6yre0.fsf@iznogoud.viz> <20121104004557.00fb50a5@shorty.local> <85txt5eav5.fsf@iznogoud.viz> <20121104122456.3f2c6448@shorty.local> <85sj8prl8d.fsf@iznogoud.viz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352085843 21297 80.91.229.3 (5 Nov 2012 03:24:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Nov 2012 03:24:03 +0000 (UTC) Cc: 12792@debbugs.gnu.org To: Wolfgang Jenkner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 05 04:24:13 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TVDIK-0001sF-ES for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Nov 2012 04:24:12 +0100 Original-Received: from localhost ([::1]:53739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVDIB-0003O9-Lv for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Nov 2012 22:24:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVDI8-0003Nt-Td for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 22:24:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVDI7-0008UT-Gc for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 22:24:00 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVDI7-0008UP-9R for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 22:23:59 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TVDL4-0000tJ-35 for bug-gnu-emacs@gnu.org; Sun, 04 Nov 2012 22:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Nov 2012 03:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12792-submit@debbugs.gnu.org id=B12792.13520860143412 (code B ref 12792); Mon, 05 Nov 2012 03:27:01 +0000 Original-Received: (at 12792) by debbugs.gnu.org; 5 Nov 2012 03:26:54 +0000 Original-Received: from localhost ([127.0.0.1]:49497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVDKw-0000sy-7A for submit@debbugs.gnu.org; Sun, 04 Nov 2012 22:26:54 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:59251) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TVDKt-0000sq-BM for 12792@debbugs.gnu.org; Sun, 04 Nov 2012 22:26:52 -0500 Original-Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 6F2D52046F; Sun, 4 Nov 2012 22:23:47 -0500 (EST) Original-Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute4.internal (MEProxy); Sun, 04 Nov 2012 22:23:47 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mesmtp; bh=vfjwMeBgESsTce7zdGPErXznM1g=; b=rRBre4Vs61AHTqYEu6eshH5neG8r HQ5S0BaUwyJ7VOzFQVEotnZa9XxXEB6L8tK7BECkl0T/Jx3evQ1A/ie1eA2H9DVU LkZEroRLqB0BJ1IMztAFCvggSUz1Hd5r81JdrXLOaET7LxTj1RJoR+SCpcc7ex8P BOGybJnoJ5GfjqA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=smtpout; bh=vfjwMeBgESsTce7zdGPErX znM1g=; b=YhPHQT5dQmPpF5ejb4sQ0Rv4ANZU5V3uuf8qLawO3bxVgSbs7kQJZp TR4kMMF2p/hDwAaui2yru+BfFcijCOmd9lTwT3Zy8PLwHOwKeyS0n9dhBIXeiyFn KhQ/5+cUH+XnKhuZ2lV03lalw3+U9Mj/wukvodUKfk2Q7Dus6It5A= X-Sasl-enc: G1JnF3X10QndRJnkwz912V7UMcQvaTSm5cfZFwiicd7C 1352085827 Original-Received: from shorty.local (unknown [76.169.242.46]) by mail.messagingengine.com (Postfix) with ESMTPA id C3E76482659; Sun, 4 Nov 2012 22:23:46 -0500 (EST) In-Reply-To: <85sj8prl8d.fsf@iznogoud.viz> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66461 Archived-At: > On Mon, 05 Nov 2012 00:39:46 +0100 > Wolfgang Jenkner wrote: > > On Sun, Nov 04 2012, Dima Kogan wrote: > > > zsh is the main shell I use that looks to be problematic. I can consistently > > observe the issues if I delete all ~/.zsh* files, then add just the following to > > the .zshrc: > > > > export PS1="%F{red}%n@%m%f:%F{yellow}%~%f%(!.#.$) " > > Could you please do > > M-x ansi-color-for-comint-mode-off > > so that we may see the raw escape sequences generated by that PS1? To clarify the test even more, I set my .zshrc to unsetopt zle unsetopt prompt_cr unsetopt prompt_subst export PS1="%F{red}%n@%m%f:%F{yellow}%~%f%(!.#.$) " This is the complete .zshrc file. The unsetopt stuff turns off zsh's keyboard processing. Probably doesn't matter, but i'm mentioning this for completeness. In the shell I pressed enter a few times to see the prompt sequences; then I ran a command that produces some output without ANSI codes. Then I ran a command that does produce some ansi codes in its output. Then I ran the plain-output command again. The output (with all the 'escape' characters replaced with '\e' to make sure the email handlers don't get confused): \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ seq 5 1 2 3 4 5 \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ ls --color=auto -ld .emacs.d drwxr-xr-x 6 dima dima 4096 Nov 3 15:31 \e[0m\e[01;34m.emacs.d\e[0m \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ seq 5 1 2 3 4 5 \e[31mdima@shorty\e[39m:\e[33m~\e[39m$ If I run the exact same sequence of commands with ansi-color-for-comint-mode-on and the latest ansi-color.el, I see everything yellow (nil face), except for ".emacs.d", which is blue and the last prompt, which is all blue also. This prompt would change to all yellow also if I press enter again. Not that the prompt shouldn't be all blue. If I evaluate your defun also, I get everything red (nil face also) until the ".emacs.d". The ".emacs.d" is blue, as it should be. From that point on, all the plain output is black and all the prompts are blue. This is correct, except the prompts still shouldn't be all blue. Sorry for all the confusion. dima