gansm / finalcut

A text-based widget toolkit
https://github.com/gansm/finalcut/wiki/First-steps#first-steps-with-the-final-cut-widget-toolkit
GNU Lesser General Public License v3.0
981 stars 52 forks source link

ColorPalette not resetting after close #115

Closed wimstockman closed 1 year ago

wimstockman commented 1 year ago

ColorPalette not resetting after close

I see that finalcut sets its own colorpalette on startup. But after quitting it doesn't revert back to the original. I'm using St terminal emulator

This is before: before

And this is after: after

Kind Regards, Wim Stockman

gansm commented 1 year ago

Hi Wim, the st terminal has a poorly implemented OSC 104 (reset color palette). It supports no call without parameter (which means reset all). As a workaround, I reset each color separately (b291d04).

Therefore

"\033]104;0\007"
          :
"\033]104;15\007"

instead of

"\033]104\007"
wimstockman commented 1 year ago

Thanks for your solution. Maybe I should sent a patch to st witch implementation for the OSC :-). Great Work. Have a nice weekend. Wim