Colored terminal output via ANSI escapes

Moderator: GZDoom Developers

Post Reply
User avatar
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:

Colored terminal output via ANSI escapes

Post by Marrub »

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.
User avatar
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

Post by wildweasel »

It might be terribly amusing to have stdout also output the ENDOOM graphic, if the game is already being run from terminal.
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Colored terminal output via ANSI escapes

Post by InsanityBringer »

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.
User avatar
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

Post by Marrub »

wildweasel wrote:It might be terribly amusing to have stdout also output the ENDOOM graphic, if the game is already being run from terminal.
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 request :P
Cacodemon345
Posts: 422
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Colored terminal output via ANSI escapes

Post by Cacodemon345 »

Cacodemon345
Posts: 422
Joined: Fri Dec 22, 2017 1:53 am
Graphics Processor: ATI/AMD (Modern GZDoom)
Contact:

Re: Colored terminal output via ANSI escapes

Post by Cacodemon345 »

This can be closed.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”