emacs ansi-term背景颜色 [英] emacs ansi-term background color

查看:144
本文介绍了emacs ansi-term背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更改ansi-term中的背景颜色(也是术语 - 但是shell很好)时出现问题。它从输出显示颜色很好,但是输出的背景颜色总是白色的。不是整个缓冲区,而是刚刚输出的实际字符。如果我做一些类似

I'm having a problem changing the background color in ansi-term (and also term - but shell is fine). It displays colors fine from output but the background color of the out put is always white. Not the entire buffer, but just under actual characters that have been outputted. If I do something like

(add-hook 'ansi-term-mode-hook
    (lambda ()
        (set-background-color "purple")))

这会更改缓冲区的背景颜色,但输出只是覆盖它自己的背景颜色 - 白色。

This changes the buffer's background color, but the output just overrides it with its own background color - white.

我也试图找到它正在使用的脸,所以我可以通过做自定义 Cu Cx = 以获取在脸上的信息 - 这适用于所有其他东西,甚至指向你在哪里改变它是很好的...但在ansi我会得到这个

I've also tried to find the face that it is using so I can customize it by doing C-u C-x = to get the info on the face at the point -- which works for everything else and even points you where to change it which is nice... but in ansi term i get this

    character: m (109, #o155, #x6d)
preferred charset: ascii (ASCII (ISO646 IRV))
   code point: 0x6D
       syntax: w    which means: word
     category: .:Base, a:ASCII, l:Latin, r:Roman
  buffer code: #x6D
    file code: #x6D (encoded by coding system utf-8)
      display: by this font (glyph code)
xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-iso10646-1 (#x50)

Character code properties: customize what to show
  name: LATIN SMALL LETTER M
  general-category: Ll (Letter, Lowercase)

There are text properties here:
  face                 (:background "white" :foreground "black")

[back]

我不知道这在哪里设置。
face(:backgroundwhite:foregroundblack)

I don't know where this is getting set. face (:background "white" :foreground "black")

此外,我使用了多个我认识的主题有ansi-term-color-vector(zenburn等)。我已经经历了自定义面部的每个样本,也没有在那里的任何样本。

Also, I've used multiple themes that I know have the ansi-term-color-vector (zenburn, etc). I've gone through every sample in customize-face and its no where in there either.

有关如何覆盖/设置这样的想法,所以它只是透明的(或没有设置)背景像一切吗?

Any thoughts on how to override/set this so it's just the transparent (or unset) background like everything else?

感谢任何帮助。

推荐答案

我不确定如果我明白你的设置发生了什么,但是你可以尝试设置:

I'm not sure if I understand what's going on in your setup but you can try setting:

(setq term-default-bg-color "#211E1E")
(setq term-default-fg-color "#AAAAAA")

尝试从暂存缓冲区开始一个新的术语并检查。

Try it from scratch buffer start a new term and check.

这篇关于emacs ansi-term背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆