mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 23:44:59 +02:00
tab_title_template allow using the 256 terminal colors for formatting
This commit is contained in:
@@ -118,6 +118,8 @@ class ColorFormatter:
|
||||
elif q == 'tab':
|
||||
col = color_from_int((self.draw_data.tab_bg if self.which == '4' else self.draw_data.tab_fg)(self.tab_data))
|
||||
ans = f'8{color_as_sgr(col)}'
|
||||
elif q.startswith('color'):
|
||||
ans = f'8:5:{int(q[5:])}'
|
||||
else:
|
||||
if name.startswith('_'):
|
||||
q = f'#{name[1:]}'
|
||||
|
||||
Reference in New Issue
Block a user