gpt4 book ai didi

终端和iTerm2 : same profile ANSI colors look differently

转载 作者:行者123 更新时间:2023-12-04 04:34:04 25 4
gpt4 key购买 nike

我已经将iTerm2的配置文件配置为与OS X El Captain随附的Terminal应用程序中的Pro配置文件的颜色匹配。尽管如此,我仍然可以清楚地看到一些显示不同的颜色:

two terminal windows showing different colors

为什么会这样?我还想念其他什么设置?从iTerm2导出的配置文件:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 1 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.60000002384185791</real>
</dict>
<key>Ansi 10 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.85098040103912354</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 11 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.89803922176361084</real>
<key>Red Component</key>
<real>0.89803922176361084</real>
</dict>
<key>Ansi 12 Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 13 Color</key>
<dict>
<key>Blue Component</key>
<real>0.89803922176361084</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.89803922176361084</real>
</dict>
<key>Ansi 14 Color</key>
<dict>
<key>Blue Component</key>
<real>0.89803922176361084</real>
<key>Green Component</key>
<real>0.89803922176361084</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 15 Color</key>
<dict>
<key>Blue Component</key>
<real>0.89803922176361084</real>
<key>Green Component</key>
<real>0.89803922176361084</real>
<key>Red Component</key>
<real>0.89803922176361084</real>
</dict>
<key>Ansi 2 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.65098041296005249</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 3 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.60000002384185791</real>
<key>Red Component</key>
<real>0.60000002384185791</real>
</dict>
<key>Ansi 4 Color</key>
<dict>
<key>Blue Component</key>
<real>0.85894733667373657</real>
<key>Green Component</key>
<real>0.034443430602550507</real>
<key>Red Component</key>
<real>0.12391651421785355</real>
</dict>
<key>Ansi 5 Color</key>
<dict>
<key>Blue Component</key>
<real>0.69803923368453979</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.69803923368453979</real>
</dict>
<key>Ansi 6 Color</key>
<dict>
<key>Blue Component</key>
<real>0.69803923368453979</real>
<key>Green Component</key>
<real>0.65098041296005249</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Ansi 7 Color</key>
<dict>
<key>Blue Component</key>
<real>0.74901962280273438</real>
<key>Green Component</key>
<real>0.74901962280273438</real>
<key>Red Component</key>
<real>0.74901962280273438</real>
</dict>
<key>Ansi 8 Color</key>
<dict>
<key>Blue Component</key>
<real>0.40000000596046448</real>
<key>Green Component</key>
<real>0.40000000596046448</real>
<key>Red Component</key>
<real>0.40000000596046448</real>
</dict>
<key>Ansi 9 Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.89803922176361084</real>
</dict>
<key>Background Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Bold Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<key>Green Component</key>
<real>1</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Cursor Color</key>
<dict>
<key>Blue Component</key>
<real>0.30196079611778259</real>
<key>Green Component</key>
<real>0.30196079611778259</real>
<key>Red Component</key>
<real>0.30196079611778259</real>
</dict>
<key>Cursor Text Color</key>
<dict>
<key>Blue Component</key>
<real>1</real>
<key>Green Component</key>
<real>1</real>
<key>Red Component</key>
<real>1</real>
</dict>
<key>Foreground Color</key>
<dict>
<key>Blue Component</key>
<real>0.94901961088180542</real>
<key>Green Component</key>
<real>0.94901961088180542</real>
<key>Red Component</key>
<real>0.94901961088180542</real>
</dict>
<key>Selected Text Color</key>
<dict>
<key>Blue Component</key>
<real>0.0</real>
<key>Green Component</key>
<real>0.0</real>
<key>Red Component</key>
<real>0.0</real>
</dict>
<key>Selection Color</key>
<dict>
<key>Blue Component</key>
<real>0.25490197539329529</real>
<key>Green Component</key>
<real>0.25490197539329529</real>
<key>Red Component</key>
<real>0.25490197539329529</real>
</dict>
</dict>
</plist>

最佳答案

终端和iTerm都有用于“亮”和“正常”颜色的调色板。两者都具有默认相反的“以明亮的颜色绘制粗体文本”。在我的系统上,默认值如下:

终端默认值:

enter image description here

iTerm默认值:

Defaults

我不确定所讨论的文本是否为粗体,但是确保两个应用程序之间的此设置一致可以解决此问题。

编辑:还要检查配置文件>颜色下的对比度选项

enter image description here

关于终端和iTerm2 : same profile ANSI colors look differently,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36221252/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com