matyalatte / tuw

Tiny GUI wrapper for command-line tools
MIT License
18 stars 1 forks source link

Support Colorized Output #35

Open matyalatte opened 1 month ago

matyalatte commented 1 month ago

Related to #34. Many applications use colorized strings that start with \e[XXm. But Tuw doesn't.

matyalatte commented 1 month ago

On Windows, you can set ENABLE_VIRTUAL_TERMINAL_PROCESSING to console with SetConsoleMode.

matyalatte commented 1 month ago

Windows support was done at 0b726f1bdafa1afa657001a636337736e972c38e. Screenshot (96)

color.bat ```batch @echo off for /f %%i in ('cmd /k prompt $e^

macOS is already supported. I gave up adding Linux support for now because it requires a custom GTK widget for the escape sequences.