From: Brad from MA <brad.l.miller@gmail.com>
To: Help-gnu-emacs@gnu.org
Subject: Re: bad font in shell mode
Date: Sun, 15 Mar 2009 07:41:09 -0700 (PDT) [thread overview]
Message-ID: <22523853.post@talk.nabble.com> (raw)
In-Reply-To: <87ab7nihtg.fsf@debian.domain>
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 <brad.l.miller@gmail.com> 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.
next prev parent reply other threads:[~2009-03-15 14:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-14 22:03 bad font in shell mode Brad from MA
2009-03-15 3:30 ` Andy Stewart
2009-03-15 14:41 ` Brad from MA [this message]
2009-03-15 8:55 ` Peter Dyballa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22523853.post@talk.nabble.com \
--to=brad.l.miller@gmail.com \
--cc=Help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).