Because ANSI escapes have 24-bit color, it would be possible to add text color support to stdout for non-Windows targets by using these.
It would perhaps also be nice to have a CVar, so one could change the behaviour to use quantized 8-bit color instead of truecolor, use quantized 4-bit color, or disable it entirely. This is of course just an idea, not really a required feature.
Colored terminal output via ANSI escapes
Moderator: GZDoom Developers
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
Re: Colored terminal output via ANSI escapes
It might be terribly amusing to have stdout also output the ENDOOM graphic, if the game is already being run from terminal.
- InsanityBringer
- Posts: 3392
- Joined: Thu Jul 05, 2007 4:53 pm
- Location: opening the forbidden box
Re: Colored terminal output via ANSI escapes
I would love this very much for doing work on my linux machine, since the uncolored terminal does get a little raw to look at after a while.
- Marrub
-
- Posts: 1202
- Joined: Tue Feb 26, 2013 2:48 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Arch Linux
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Contact:
Re: Colored terminal output via ANSI escapes
This is rather easy since ENDOOMs use the same graphics capabilities as old ANSI codes. Even blinking text can be used! Though it should certainly be an option. And furthermore this is a bit outside the scope of this requestwildweasel wrote:It might be terribly amusing to have stdout also output the ENDOOM graphic, if the game is already being run from terminal.

-
- Posts: 422
- Joined: Fri Dec 22, 2017 1:53 am
- Graphics Processor: ATI/AMD (Modern GZDoom)
- Contact:
-
- Posts: 422
- Joined: Fri Dec 22, 2017 1:53 am
- Graphics Processor: ATI/AMD (Modern GZDoom)
- Contact:
Re: Colored terminal output via ANSI escapes
This can be closed.