我想在终端打印一些彩色粗体文本,但是我得到了鲜艳的常规文本。在我看来,只有白色才能大小显示。
例如,当我运行 echo -e“ \ e [1ma“
”时,我可以在白色中获得一个粗体字母 a
,而运行 echo -e” e [1; 31MA“
给我一个常规的字母 a
在明亮的红色
更新中:我发现当我使用远程SSH连接到服务器时,我可以在终端是预期的。但是,如果我在本地项目中打开终端,即使我在此终端中的服务器上也可以看到明亮的常规文本。
I want to print some colored bold texts in terminal, but I got bright colored regular texts instead. It seems to me that only white can be displayed in bold size.
For example, when I run echo -e "\e[1ma"
, I can get a bold letter a
in white, while running echo -e "\e[1;31ma"
gives me a regular letter a
in bright red
update: I found out that when I connect to a server using remote-ssh, I can get colored bold text in terminal as expected. But if I open a terminal in local project, I can only see bright regular text even if I ssh to the server in this terminal.
发布评论
评论(2)
在设置中搜索“ BOLD”并禁用“终端> intimation> Integrated:以鲜艳的颜色绘制粗体文本”:
Search for "bold" in the Settings and disable "Terminal > Integrated: Draw Bold Text In Bright Colors":
查找“终端>集成:最小对比度”设置。默认情况下将其设置为4.5,但将其设置为1应该可以解决问题。
Look for the "Terminal > Integrated: Minimum Contrast Ratio" setting. It is set to 4.5 by default but setting it to 1 should do the trick.