Skip to content

lolcrab prints literal ANSI escape sequences #10

@MagicalDrizzle

Description

@MagicalDrizzle
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions