Файли
openidea/src/ui/ansi.module.css
T
l0ng-ai c821ab144c fix(run): Give forked and debugged JVMs the console encoding and render colours in the Debug console (#220)
Only the JVM the IDE launched directly was told the console's output encoding, so forked JVMs (spring-boot:run, Surefire, bootRun, Gradle workers), debugger-launched JVMs and Build-window builds wrote GBK on Windows while the console decoded UTF-8. Every JVM the IDE starts on Windows now gets the console encoding: java gets -Dfile.encoding alongside the std* properties, build tools and their forks get JAVA_TOOL_OPTIONS (std* only) with the IDE's own 'Picked up JAVA_TOOL_OPTIONS' line filtered, shell command lines are recognised by their first word, and java-debug launches get the matching vmArgs. The Debug console now shares the Run console's ANSI parser. Encoding helpers moved to ide-core::output_encoding.

Not verified on a Windows machine.

Fixes #180
Fixes #182

Claude-Session: https://claude.ai/code/session_01Dq6jQQn8ZhRfkkyj3PRutA
2026-10-29 11:58:19 +08:00

20 рядки
998 B
CSS

/* ANSI palette of the Run and Debug consoles, derived from tokens (spans reference these). */
.palette {
--ansi-black: var(--control-off);
--ansi-red: var(--danger);
--ansi-green: var(--success);
--ansi-yellow: var(--warning);
--ansi-blue: var(--syn-keyword);
--ansi-magenta: var(--syn-annotation);
--ansi-cyan: color-mix(in srgb, var(--syn-keyword) 50%, var(--syn-string));
--ansi-white: var(--fg);
--ansi-bright-black: var(--fg-subtle);
--ansi-bright-red: color-mix(in srgb, var(--danger) 72%, var(--fg-strong));
--ansi-bright-green: color-mix(in srgb, var(--success) 72%, var(--fg-strong));
--ansi-bright-yellow: color-mix(in srgb, var(--warning) 72%, var(--fg-strong));
--ansi-bright-blue: color-mix(in srgb, var(--syn-keyword) 72%, var(--fg-strong));
--ansi-bright-magenta: color-mix(in srgb, var(--syn-annotation) 72%, var(--fg-strong));
--ansi-bright-cyan: color-mix(in srgb, var(--ansi-cyan) 72%, var(--fg-strong));
--ansi-bright-white: var(--fg-strong);
}