tab_title_template allow using the 256 terminal colors for formatting

This commit is contained in:
Kovid Goyal
2024-10-15 11:45:47 +05:30
parent 62d5e13cbd
commit d31459b092
3 changed files with 5 additions and 0 deletions

View File

@@ -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:]}'