Compare commits

...

2 Commits

Author SHA1 Message Date
khuxkm fbexl 6fafe8a8de Add function to replace colors by name 2018-12-15 22:57:23 -05:00
Ben Harris 68253447b7 Set theme jekyll-theme-midnight 2018-11-09 12:17:09 -05:00
2 changed files with 9 additions and 0 deletions

View File

@ -273,6 +273,14 @@ colormap = [
("60", "light magenta", "default")
]
def replace_color(name,fg,bg=None):
for i,t in enumerate(colormap):
t = list(t)
if t[0]==name:
t[1] = fg
t[2] = bg if bg is not None else t[2]
colormap.__setitem__(i,tuple(t))
escape_map = {
key: urwid.vterm.ESC + sequence
for sequence, key in urwid.escape.input_sequences

1
docs/_config.yml 100644
View File

@ -0,0 +1 @@
theme: jekyll-theme-midnight