emacs - 在 Emacs 中修改 ansi-term 颜色

标签 emacs colors terminal ansi-escape ansi-term

下面红色椭圆中的文字难以阅读

enter image description here

当我用 C-u C-x = 检查人脸时(什么脸)我看到以下内容:

enter image description here

于是我去更新了脸term-bold (见下文),但颜色似乎与我在上面屏幕上实际看到的不匹配(根据面部定义,它应该是蓝色+黄色)。有什么想法吗?

enter image description here

最佳答案

Emacs 使用自己的终端颜色来呈现 ansi 颜色代码。您可以通过更改两个面孔来更改您所指面孔的外观:

  • term-color-yellow
  • term-color-blue

  • 比如改变人脸的前景属性term-color-yellowyellow3 ,以及人脸的背景属性 term-color-bluedark-blue导致以下外观:

    enter image description here

    这比原始帖子中的面部更具可读性,并且类似于蓝色和黄色终端颜色的传统外观。

    关于emacs - 在 Emacs 中修改 ansi-term 颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21635332/

    相关文章:

    涉及正斜杠的 Emacs 键绑定(bind)

    emacs - 如何防止 emacs 在批处理模式下切断堆栈跟踪?

    c++ - 如何为 C++ 创建 EDE 项目

    java - 反转 BufferedImage 的 alpha

    r - Wordcloud 基于 R 中的连续元数据显示颜色

    c++ - SFML 拾色器问题

    c - Linux 终端文件打开

    emacs word replace 对我不起作用?

    Bash grep 命令开始于或结束于

    linux - 通过管道将 STDOUT 传输到图像?