I have a perl script which randomly selects a FG and BG colors for my terminal. I use the following print commands to set the FG and BG on the fly:
print "\033]10;<fg_color>\007";
print "\033]11;<bg_color>\007";
I need to set the palette colors too, but i'm having problems finding an example on how to do it. Can any one help me?