简体   繁体   English

如何删除cygwin中tig中使用的深蓝色?

[英]How do I remove the dark blue that is used in tig in cygwin?

I have looked all over google and I am still unable to find the config param to get rid of the dark blue that is used by tig in the cygwin terminal. 我已经遍布谷歌,我仍然无法找到配置参数来摆脱cygwin终端中tig使用的深蓝色。 The Dark Blue just like when it is used in ls can be difficult to read and peruse. 深蓝色就像在ls中使用一样,很难阅读和阅读。

Does anyone know how to change this setting? 有谁知道如何更改此设置?

Thank you in advance. 先感谢您。

You can change the color in your ~/.tigrc file. 您可以更改~/.tigrc文件中的颜色。 From version 2.0 all colors are documented in the system tigrc file. 从版本2.0开始,所有颜色都记录在系统tigrc文件中。 Take a look at the color section to get an idea of where blue is used. 看一下颜色部分 ,了解蓝色的使用位置。 In older versions, you need to refer to the tigrc man page to see the color supported names. 在旧版本中,您需要参考tigrc手册页以查看支持颜色的名称。 The default color settings are only "configured in the source code. 默认颜色设置仅“在源代码中配置”。

Alternatively, you could also change make the dark blue color more readable in the Cygwin terminal itself. 或者,您也可以更改使深蓝色在Cygwin终端本身更具可读性。 For example, take a look at https://superuser.com/a/444766 . 例如,请查看https://superuser.com/a/444766

Cygwin uses the mintty terminal emulator by default, which doesn't seem to give the ability to customize its colors. Cygwin默认使用mintty终端模拟器,它似乎不能自定义其颜色。 You might want to switch to Console2 ; 您可能想切换到Console2 ; it does offer this ability. 它确实提供了这种能力。 I know of at least one legible color scheme, Solarized , available for it; 我知道至少有一种易读的配色方案, Solarized ,可用于它; but you may be able to find others. 但你可能能找到其他人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM