matthiasblaesing opened a new pull request, #9741:
URL: https://github.com/apache/netbeans/pull/9741

   The NetBeans terminal has only rudimentary support for setting colors. For 
many use-case this is enough but more complex applications assume support for 
larger color ranges. One such example is "opencode". In NetBeans it currently 
looks like this:
   
   <img width="953" height="356" alt="grafik" 
src="https://github.com/user-attachments/assets/b0d36d60-1330-4cf3-85d6-464186cf49d7";
 />
   
   Checking the supplied color codes turned out, that opencode sends sequences 
in the form `\[38;2;<r>;<g>;<b>m` and `\[48;2;<r>;<g>;<b>m`. These sequences 
carry 24bit color definitions.
   
   This PR implements support for the 24bit sequences and also the 256 color 
palette index variant (`\[38;5;<n>m`, `\[48;5;<n>m`).
   
   With this applied opencode is rendered like this:
   
   <img width="939" height="500" alt="grafik" 
src="https://github.com/user-attachments/assets/30ea30ac-b104-42dc-9bf4-77c651eaa260";
 />
   
   The palette codes can be demoed with `colortest-python` tool:
   
   Before:
   
   <img width="468" height="407" alt="grafik" 
src="https://github.com/user-attachments/assets/c135ee9d-80e7-4fcd-abb1-ceb20b25896c";
 />
   
   After:
   
   <img width="415" height="406" alt="grafik" 
src="https://github.com/user-attachments/assets/6d2a59b0-10b2-4772-ae0f-d18ea2b1914c";
 />
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to