View Single Post
Old January 9, 2018, 10:27   #6
Quirk
Swordsman
 
Join Date: Mar 2016
Posts: 269
Quirk is on a distinguished road
Quote:
Originally Posted by Gwarl View Post
That's how it did work before I copied the colour handling from V over it. The 16 color pairs is more or less dead code now.
No, this is not true. The colour handling in the patch you applied still supports just 16 colours and the colour table has just 16 entries; there's a loop from i = 0 while i < 16 to fill them in, you can verify this for yourself. The difference is that it's using the xterm colour pairs not the built-in curses colour pairs, and it's overwriting the curses colours on receiving TERM_XTRA_REACT while compiled in 256 colour mode.
Quirk is offline   Reply With Quote