使用iterm2&#x2b时,显示是错误的。屏幕+ Macos Monterey上的Emacs

发布于 2025-02-12 03:32:32 字数 1165 浏览 1 评论 0原文

当我使用iterm2 +屏幕 + emacs时,显示是错误的。 例如,即使我不自定义设置,也会在Whitespace自动设置下划线。 角色的颜色与我不使用屏幕的颜色不同。 颜色为粉红色 + emacs,但默认颜色必须为蓝色。 使用屏幕和不使用屏幕之间存在不同的行为。

我使用的每个信息

  • GNU EMACS 28.1
  • 屏幕版本4.09.00(GNU)30-JAN-22

,如果我在此状态下检查了列表 - 彩色播放,则颜色不会正确显示。

如果我不使用屏幕,则显示屏看起来不错,并且列表 - 色 - 播放显示正确。

如果我使用terminal.app而不是iterm2,它看起来也不错。

请告诉我如何在iterm2上正确显示。

When I use iTerm2 + screen + emacs, the display is something wrong.
For example, underline is set automatically at whitespace even if I don't customize setting.
And character's color is different from what I don't use screen.
The color is pink on screen + emacs, but default color must be blue.
There is a different behavior between using screen and not using screen.
enter image description here

each information I use as below

  • GNU Emacs 28.1
  • Screen version 4.09.00 (GNU) 30-Jan-22

And if I checked list-colors-display in this state, colors are not displayed correctly.
enter image description here

If I don't use screen, the display looks good and list-colors-display is shown correctly.
enter image description here

And if I use terminal.app instead of iTerm2, it also looks good.
enter image description here
enter image description here

Please tell me how to display correct on iTerm2.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心碎无痕… 2025-02-19 03:32:32

ITERM2将Colorterm Environment变量设置为TrueColor,这使Emacs认为它可以使用比256多的颜色 - 哪个屏幕不支持。只是不设置色素,事情应该按预期工作。

iTerm2 sets COLORTERM environment variable to truecolor that makes emacs think it can use more colors than 256 - which screen doesn't support. Just unset COLORTERM and things should work as expected.

甜味拾荒者 2025-02-19 03:32:32

我找到了解决方法。
如果我使用Emacs 27.1,我将不会面对这个问题。

I found the workaround.
If I used emacs 27.1, I don't face this issue.

神妖 2025-02-19 03:32:32

在下面的行中添加:

setEnv colorterm“”

到我的〜/.screenrc为我解决了问题。

adding below line:

setenv COLORTERM ""

to my ~/.screenrc solved the issue for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文