Let's say that something breaks the default 256 colour palette. As an example, pick on colour 108:
printf "\033]4;108;rgb:ff/00/00\033\\"
How do I undo this? I've searched all current "reset terminal" questions, and have tried:
reset # You can't see this in the screenshot as it clears the screen
tput init
tput sgr0
printf '\e[0m'
Using a test pattern we can clearly see that colour #108 is still b0rken:
I'm running GNOME terminal.
I don't want to do something like gconftool --recursive-unset /apps/gnome-terminal
as this will mess with general terminal configuration (eg fonts) for all open/new gnome-terminal
s. It's too much of a broad brush stroke.
How do I, from the command line within the terminal:
- Restore a particular palette colour to its default?
- Restore ALL palette colours to their default?
As the issue can be created with emitting a control code, I hope it can be solved with one, too.
gconftool
command only resetsgnome-terminal
what you mean byall terminals
?