Add a remote control command to change colors

Also add a FAQ entry about changing colors in a running kitty instance.
I'm tired of all the bug reports asking for this feature. Apparently,
people find it hard to google for the existing escape codes based
solution.
This commit is contained in:
Kovid Goyal
2018-04-02 10:45:52 +05:30
parent 2efa83bc4d
commit 1fd84612a8
6 changed files with 160 additions and 17 deletions

4
kitty/rgb.py generated
View File

@@ -31,6 +31,10 @@ def color_from_int(x):
return Color((x >> 16) & 255, (x >> 8) & 255, x & 255)
def color_as_int(x):
return x.red << 16 | x.green << 8 | x.blue
def to_color(raw, validate=False):
# See man XParseColor
x = raw.strip().lower()