mazznoer / lolcrab

Like lolcat but with noise and more colorful.
MIT License
111 stars 1 forks source link

lolcrab prints literal ANSI escape sequences #10

Open MagicalDrizzle opened 10 months ago

MagicalDrizzle commented 10 months ago
C:>echo a | lolcrab
←[38;2;175;240;91ma←[38;2;187;227;72m
←[39m

It seems this is because of this issue, which seems to say your program has to opt-in to cmd's color processing, as setting HKEY_CURRENT_USER\Console\VirtualTerminalLevel to 1 makes lolcrab works. https://superuser.com/questions/413073/windows-console-with-ansi-colors-handling

Other implementations (e.g https://github.com/kiedtl/Meow) work fine without setting this regkey.