简体   繁体   English

IntelliJ Webstorm 终端颜色错误

[英]IntelliJ Webstorm Terminal color bug

I'm starting to get this weird color terminating bug in the terminal and I tried everything I can think of to fix it.我开始在终端中遇到这个奇怪的颜色终止错误,我尝试了我能想到的一切来修复它。

It looks like the color doesn't get reset when outputted by some command.当某些命令输出时,看起来颜色没有被重置。 Does anyone know how to fix it?有谁知道如何修理它?

I even tried making my.bash_profile PS!我什至尝试制作 my.bash_profile PS! really simple export PS1="\W: " , different terminals, cmd, git-bash, all are experiencing this issue.非常简单的export PS1="\W: " ,不同的终端,cmd,git-bash,都遇到了这个问题。

This only happens inside the editor's terminal/run window.这只发生在编辑器的终端内/运行 window。 If I start my terminals externally they are fine.如果我从外部启动终端,它们就很好。

git bash 命令

Seems you have some custom colors set for screen text and background in Windows cmd console properties.似乎您在 Windows cmd 控制台属性中为屏幕文本和背景设置了一些自定义 colors 。 See IDEA-145236 and IDEA-124182 for details.有关详细信息,请参阅IDEA-145236IDEA-124182 The solution is to set cmd console colors back to defaults - by either editing the Windows registry key or by modifying default cmd console properties解决方案是将 cmd 控制台 colors 设置回默认值 - 通过编辑 Windows 注册表项或通过修改默认 ZDFFAFF20A467FA1A5FDA4C5C1

Resetting my console settings by deleting the entire HKEY_CURRENT_USER\Console key from the registry to do a "hard reset" on all my terminals was the suggested solution.建议的解决方案是通过从注册表中删除整个 HKEY_CURRENT_USER\Console 键以在我的所有终端上执行“硬重置”来重置我的控制台设置。

Another suggestion was to just delete one key, ScreenColors .另一个建议是只删除一个键ScreenColors I didn't try this because this issue was plaguing all my terminals.我没有尝试这个,因为这个问题困扰着我所有的终端。

No one knows the exact reason for this bug, and they're not even trying to fix it.没有人知道这个错误的确切原因,他们甚至没有尝试修复它。

Thank's lena for the suggestion.谢谢莉娜的建议。

This has been driving me nuts this week, too.这周也让我发疯了。 I use the terminal a load, so it's annoying to have to keep closing;我使用终端负载,所以不得不一直关闭很烦人; I've reset the windows cmd colours back to the difficult-to-read schema to save webstorm for now but this really kinda sucks.我已经将 windows cmd 颜色重置为难以阅读的模式以暂时保存 webstorm 但这真的有点糟糕。

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

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