使用iterm2&#x2b时,显示是错误的。屏幕+ Macos Monterey上的Emacs
当我使用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.
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.
If I don't use screen, the display looks good and list-colors-display is shown correctly.
And if I use terminal.app instead of iTerm2, it also looks good.
Please tell me how to display correct on iTerm2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
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.
我找到了解决方法。
如果我使用Emacs 27.1,我将不会面对这个问题。
I found the workaround.
If I used emacs 27.1, I don't face this issue.
在下面的行中添加:
setEnv colorterm“”
到我的〜/.screenrc为我解决了问题。
adding below line:
setenv COLORTERM ""
to my ~/.screenrc solved the issue for me.