如何在VS代码集成终端中显示有色粗体文本?

发布于 2025-01-24 12:45:03 字数 291 浏览 1 评论 0 原文

我想在终端打印一些彩色粗体文本,但是我得到了鲜艳的常规文本。在我看来,只有白色才能大小显示。

例如,当我运行 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.

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

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

发布评论

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

评论(2

我们只是彼此的过ke 2025-01-31 12:45:03

在设置中搜索“ BOLD”并禁用“终端> intimation> Integrated:以鲜艳的颜色绘制粗体文本”:

Search for "bold" in the Settings and disable "Terminal > Integrated: Draw Bold Text In Bright Colors":

enter image description here

泪之魂 2025-01-31 12:45:03

查找“终端>集成:最小对比度”设置。默认情况下将其设置为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.

Minimum Contrast Ratio setting set to 1

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