[Added] Colored terminal output via ANSI escapes

Moderator: GZDoom Developers

Colored terminal output via ANSI escapes

Postby Marrub » Wed Apr 01, 2020 1:56 am

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
Marrub
Xevv Va Rkvyr
 
 
 
Joined: 26 Feb 2013
Discord: Marrub#5455
Github ID: marrub--
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: Colored terminal output via ANSI escapes

Postby wildweasel » Wed Apr 01, 2020 10:12 am

It might be terribly amusing to have stdout also output the ENDOOM graphic, if the game is already being run from terminal.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 16 Jul 2003

Re: Colored terminal output via ANSI escapes

Postby InsanityBringer » Wed Apr 01, 2020 11:39 am

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
InsanityBringer
 
Joined: 05 Jul 2007
Location: opening the forbidden box
Discord: InsanityBringer#9908

Re: Colored terminal output via ANSI escapes

Postby Marrub » Thu Apr 02, 2020 6:41 pm

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
User avatar
Marrub
Xevv Va Rkvyr
 
 
 
Joined: 26 Feb 2013
Discord: Marrub#5455
Github ID: marrub--
Operating System: Other Linux 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: Colored terminal output via ANSI escapes

Postby Cacodemon345 » Tue Jun 16, 2020 11:23 am

Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Colored terminal output via ANSI escapes

Postby Cacodemon345 » Wed Jun 17, 2020 1:12 am

This can be closed.
Cacodemon345
 
Joined: 22 Dec 2017
Discord: Cacodemon345#9151
Github ID: Cacodemon345
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest