Handling color
Problem to solve
Developer using NcursesPlus cannot customize his application by coloring text and window background color.
Proposal
Explanation
Developer will be able to customize:
- Text foreground/background color.
- Window background color.
Technical details
There could be two ways of achieving this:
- The developer customizes a global color profile that his entire application will adopt, aka all windows and text.
- The developer passes a color configuration when constructing each window/widget.
The first method is more limiting in terms of customization, however it might simplify the API and make it easier for the developer to apply a homogeneous and consistent theme across the entire application. The second method offers more customization in case the developer wants to go a mile further and customize each window/text differently.
Extensions
If the terminal does not support color, the library should either throw an exception, or ignore the chosen colors.
Intended users
Developer of an application depending on NcursesPlus.
Edited by Marc Bechara