I have a color library that does enum-based colors, as well as 24-bit color. I used it to make a text-based image renderer that works inside of PuTTY or other terminals that support 24-bit color. I couldn't use NCURSES since, well, you can read what Dickey wrote about it here: https://invisible-island.net/ncurses/ncurses.faq.html#xterm_16MegaColors

Here's my git repo for it: https://github.com/ShakaUVM/colors

It also enables non-blocking I/O from the keyboard (which is something that honestly should be a standard option in C++), enables mouse support inside a terminal, getting the terminal size, and so forth. It's not as powerful as NCURSES, but works reasonably well on modern terminals (I have no desire to support old terminals, which is an advantage NCURSES has). You can compare your implementation against mine and copy anything you like from it.

Here's a screenshot of a Monet rendered inside PuTTY: https://user-images.githubusercontent.com/8254997/123489896-d42f2600-d5c7-11eb-8a81-c0989abe0224.png

Bill Kerney
Clovis Community College



From: Std-Proposals <std-proposals-bounces@lists.isocpp.org> on behalf of David Braun via Std-Proposals <std-proposals@lists.isocpp.org>
Sent: Friday, June 25, 2021 12:14 AM
To: C++ STD Proposals (std-proposals@lists.isocpp.org) <std-proposals@lists.isocpp.org>
Cc: David Braun <da.braun1@hotmail.com>
Subject: [std-proposals] Color Text Output
 

I propose to add colored text output to the C++ standard via the <iomanip> header. See the attached document for details.

I am looking for feedback, particularly for the ANSI (Linux/Unix/Mac) implementation.

 

I was also wondering if anyone could tell me what happened to the C++ (14?) proposal for std::audio; is that project dead?

 

I’d also like to know if the idea for constexpr function parameters which has been floated since around C++17 is being seriously considered or not.

Like this:

 

Now:                                         Discussed:

<template double d>                void myFunc(constexpr double d){}

void myFunc(){}

 

Thanks!

 

David Aaron Braun

519-680-9822

226-236-4898

da.braun1@hotmail.com