[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bad font in shell mode
From: |
Brad from MA |
Subject: |
Re: bad font in shell mode |
Date: |
Sun, 15 Mar 2009 07:41:09 -0700 (PDT) |
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.