Scinterm 5.5: How to access the initialized color pairs? #29
Replies: 2 comments 17 replies
-
|
I also see another disadvantage with the current implementation of "true RGB": If you do really use arbitrary RGB values you could easily "hit" one of the special RGB values that map to the predefined curses colors. These are again palletized by the terminal emulator and usually will not correspond to their special Scinterm RGB values. Ie. using 0x0000FF will usually not give you that exact RGB value, which may be an issue if the value is calculated or a direct user input. Perhaps full RGB support should be a configurable feauture. If enabled, you should always initialize all colors to their exact RGB values. If disabled, you could retain the old pre-5.5 algorithm for initializing the color pairs. |
Beta Was this translation helpful? Give feedback.
-
That's a good point. Do you think there is any value in exposing Scinterm's color definitions to the embedding application? Otherwise, we could perhaps define an "offset" C API to have Scinterm start defining its colors at a particular color pair number, and the application can define and use any prior numbers for itself.
Maybe we need another API to "unset" the predefined curses colors, or at least ignore them if the user intends to use RGB. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beginning with Scinterm 5.5 you are initializing color pairs on demand. How are you supposed to make use of these pairs from the code that embeds Scinterm? Do you rely on including PlatCurses.h - effectively requiring C++ - or are you supposed to initialize new color pairs independently of Scinterm?
Beta Was this translation helpful? Give feedback.
All reactions