Term mode colors

22 views
Skip to first unread message

Joe Schafer

unread,
Feb 21, 2009, 8:05:42 PM2/21/09
to help-gn...@gnu.org
Hey all,

Is it possible to use custom set colors for term-mode? I would like to
override the limited set of colors used by bash to better match my emacs color
theme. I've looked into ansi-colors but it seems to work only for
shell-mode and not term-mode. I've also tried setting the text
terminal colors using tty-color-define, but was unsuccessful.

Thanks,
Joe

Peter Jones

unread,
Feb 23, 2009, 10:18:37 AM2/23/09
to help-gn...@gnu.org

I have this in my term-mode-hook:

;; Redefine the 8 primary terminal colors to look good against black
(setq ansi-term-color-vector
[unspecified "#000000" "#963F3C" "#5FFB65" "#FFFD65"
"#0082FF" "#FF2180" "#57DCDB" "#FFFFFF"]))

--
Peter Jones, http://pmade.com
pmade inc. Louisville, CO US

Joe Schafer

unread,
Feb 23, 2009, 11:28:42 AM2/23/09
to help-gn...@gnu.org
> Peter Jones <mli...@pmade.com> writes:
>
> I have this in my term-mode-hook:
>
> ;; Redefine the 8 primary terminal colors to look good against black
> (setq ansi-term-color-vector
> [unspecified "#000000" "#963F3C" "#5FFB65" "#FFFD65"
> "#0082FF" "#FF2180" "#57DCDB" "#FFFFFF"]))

Perfect, this is exactly what I was looking for. Thanks.

Reply all
Reply to author
Forward
0 new messages