From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Brad from MA Newsgroups: gmane.emacs.help Subject: Re: bad font in shell mode Date: Sun, 15 Mar 2009 07:41:09 -0700 (PDT) Message-ID: <22523853.post@talk.nabble.com> References: <22517618.post@talk.nabble.com> <87ab7nihtg.fsf@debian.domain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237128107 14847 80.91.229.12 (15 Mar 2009 14:41:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Mar 2009 14:41:47 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 15 15:43:04 2009 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 1LirYN-0008Aj-5S for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Mar 2009 15:43:03 +0100 Original-Received: from localhost ([127.0.0.1]:44465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LirX1-00065v-3P for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Mar 2009 10:41:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LirWf-00065Y-Qw for help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 10:41:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LirWb-00064C-1C for Help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 10:41:17 -0400 Original-Received: from [199.232.76.173] (port=46012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LirWa-000649-Qn for Help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 10:41:12 -0400 Original-Received: from kuber.nabble.com ([216.139.236.158]:56941) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LirWa-00007B-9G for Help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 10:41:12 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LirWX-0007lu-6q for Help-gnu-emacs@gnu.org; Sun, 15 Mar 2009 07:41:09 -0700 In-Reply-To: <87ab7nihtg.fsf@debian.domain> X-Nabble-From: brad.l.miller@gmail.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:62930 Archived-At: Thanks Andy, that did the trick. I also added some configuration to change the colors to be more high contrast (it defaulted to a neon-green, which was hard to see). So in the interests of helping others, here is my final .emacs shell-mode configuration: (setq ansi-color-names-vector ; better contrast colors ["black" "red4" "green4" "yellow4" "blue3" "magenta4" "cyan4" "white"]) (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) Thanks to all who responded, Brad Andy Stewart-5 wrote: > > Brad from MA writes: > >> Hi, >> When I enter shell mode (M-x shell), I get a bunch of extraneous >> characters printing out. Instead of the bash command prompt >> '/home/user>' >> it comes out as: >> >> ^[[1;32m/home/user^[[1;00m> >> >> Any idea how to fix this? >> >> Thanks, >> Brad > YOu need add > (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) > for fix above problem. > > You can try to use multi-shell.el, at > http://www.emacswiki.org/cgi-bin/emacs/multi-shell.el > > Regards, > > -- Andy > > > > > -- View this message in context: http://www.nabble.com/bad-font-in-shell-mode-tp22517618p22523853.html Sent from the Emacs - Help mailing list archive at Nabble.com.