Implement escape codes for setting underline color and underline style

\E[6m for underline style = curl
\E[58<color spec>m for underline color

<color spec> can be one of 5;i where 0 <= i < 256
or 2;r;g;b where 0 <= r,g,b < 256
This commit is contained in:
Kovid Goyal
2016-12-05 11:03:02 +05:30
parent ee7f25c9ba
commit 6e5ceb63f4
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -281,6 +281,8 @@ void select_graphic_rendition(Screen *self, unsigned int *params, unsigned int c
self->cursor->italic = true; break;
case 4:
self->cursor->decoration = 1; break;
case 6:
self->cursor->decoration = 2; break;
case 7:
self->cursor->reverse = true; break;
case 9:
@@ -313,6 +315,8 @@ END_ALLOW_CASE_RANGE
SET_COLOR(fg);
case 48:
SET_COLOR(bg);
case 58:
SET_COLOR(decoration_fg);
}
}
}