Hello,
I'm facing an issue about color codes in cmd (and PowerShell). Basically they haven't been working since 2016.
On the other hand I need a way to color text on terminal for a work project, and, looking for a solution, I discovered these possible fixes: https://github.com/microsoft/WSL/issues/1173 and https://github.com/quarkusio/quarkus/issues/1029
The solution (a pretty hacky solution, but I need this to work on a handful of computers, so no problem), is to edit the HKEY_CURRENT_USER/Console/VirtualTerminalLevel registry to 1 hex. But I don't have that registry! Initially I looked for it on the regedit.exe utility, and then I tried the REG QUERY HKEY_CURRENT_USER/Console command, but the registry simply isn't there.
I tried to add that registry via REG ADD (...) but of course it doesn't work.
So what can I do to make ANSI escape codes work? The program I'm working on is in Java, and I cannot use JNA or JNI. Is there a solution?
I'm on Windows 20H0 19042.985
If you need more info I'll provide them as soon as possible.
Thanks in advance, Lapo

