You are not logged in.

#1 2015-08-28 17:28:06

dasty
Member
Registered: 2013-08-19
Posts: 11

Change terminals Color palette from script

Hi, i am try to change the color palette, background color and foreground color of pseudo terminal emulator from script.


I use this escape sequence for change the color palette:

"\e]4;ColorNumber;#rrggbb\a"     example: echo -ne "\e]4;3;#ff0000\a"

This change the color 3 of terminal palette to red.
This command usually work in all terminals i had used; gnome tilda urxvt guake stjerm and others.



For change the foreground and the background i use:

"\e]10;#rrggbb\a" (foreground)
"\e]11;#rrggbb\a" (background)

These two work only for some terminals, on guake and on stjerm not work.



Exist any other escape sequence to set the background and foreground color ?

Offline

Board footer

Powered by FluxBB