From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: weird emacs shell behavior Date: Fri, 17 Aug 2007 21:34:04 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <878x8aot03.fsf@baldur.tsdh.de> References: <87d4xmhxlr.fsf@W0053328.mgh.harvard.edu> <3esl6i10s5.fsf@freenet.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187383325 13183 80.91.229.12 (17 Aug 2007 20:42:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2007 20:42:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 17 22:42:02 2007 Return-path: Envelope-to: geh-help-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 1IM8dr-0006kU-WC for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 22:42:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IM8dr-0002ON-IH for geh-help-gnu-emacs@m.gmane.org; Fri, 17 Aug 2007 16:41:59 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!kanaga.switch.ch!switch.ch!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: dslb-084-063-047-118.pools.arcor-ip.net Original-X-Trace: cache.uni-koblenz.de 1187379245 18811 84.63.47.118 (17 Aug 2007 19:34:05 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Fri, 17 Aug 2007 19:34:05 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVWVlFmseNrkqmgzeif v9JYdoX7Ctb5AAAACXBIWXMAAAsSAAALEgHS3X78AAAACXZwQWcAAAAwAAAAMADO7oxXAAABqUlE QVQ4y8WTy3KkMAxFVQT2Iz/2QOAD3CZ7jNV7YNr//ysjmWcqlUWyGVU11dzjK9myAPwm4P8A963D /TCV06dDeURzkQug8fFm8OYAIT5afRI/DAfQNbzcvhnn/Ud1gD/wTl7rvFHvNc7Fo2GgFJTRe8dA ay/gCV121NAZJto50TlhB0VgQFD4QCwNTMWAZgRCUCOUaMTCMGYHjvBihwC2xYmIoh+It2BZgozR Qo6K6he3oc1g5oTYjRsp4c1ha6BgwG8BSUCZH4SkoApgZigbnEaRBG+rignUDNUQROLiBCwh8dpJ istayMcfQDgrXEN9wB47kM3BwsXNDfjjv7SEi3wBuVfY7UQ6xQeRoNzdhiZeThugh5x/A9gEosHn 3ub+xtCc40OH6ocg8jVXelssj8+TKO+G73a/kRtgk0ySzMk9VYwhSEKDcvcXCFPgIW1aZVYey3AB 3fZpSctqU/FMf68a5rkWfaqWNbV1vya6QN83tWVPpeq6mpcTPNaEKfVpndXcV+kCtufsaeYsrKa0 niDZVi02Wf6lpb05cthffufLTxyfi/wD4S56Bxo/ZasAAAAmelRYdENvbW1lbnQAAHjacy5KTSxJ TVEozyzJUAjJSFVw9/QNAABS5wcjkMtlcAAAABp6VFh0anBlZzpjb2xvcnNwYWNlAAB42jMCAAAz ADOJOCM1AAAAJnpUWHRqcGVnOnNhbXBsaW5nLWZhY3RvcgAAeNozqjDSMawwBGEAEYMC6T2XL08A AAAASUVORK5CYII= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:rsfcRCntbnpOTjVCJYU8jdiC5A8= Original-Xref: shelby.stanford.edu gnu.emacs.help:151090 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46665 Archived-At: Emilio Lopes writes: Hi Emilio, >> The [32, etc are control characters that indicate colors. Try >> turning them off in your shell's rc file or use "M-x ansi-term" to >> see the colors. > > No need to resort to `ansi-term', which is a full terminal-emulator. > You can have shell mode interpret those codes using > `ansi-color-for-comint-mode-on'. I did that and now I get nicely colored output, but still there are some control characters left and each command is printed twice. ,---- | > echo "Hello, test!" <== That's what I typed. It's bold after RET | > echo "Hello, test!" <== After my RET the line gets repeated... | ^[]2;echo ~^GHello, test! <== After the ^G comes the output. `---- Do you know what ^[ and ^G are for control chars and how I can get rid of them? If I do the same in an xterm I get ,---- | > echo "Hallo, test..." | Hallo, test... `---- without any coloring. So what's confusing emacs here? Bye, Tassilo