Add support for the strikethrough attribute (SGR 9), using the new smxx

terminfo capability. This means there are now nine attribute bits, so
anything above 0xff uses an extended cell.
This commit is contained in:
nicm
2017-03-22 07:16:54 +00:00
parent 04e17a7e11
commit df3ab87964
8 changed files with 29 additions and 13 deletions

View File

@ -31,10 +31,8 @@ style_parse(const struct grid_cell *defgc, struct grid_cell *gc,
struct grid_cell savedgc;
const char delimiters[] = " ,";
char tmp[32];
int val;
int val, fg, bg, attr, flags;
size_t end;
int fg, bg;
u_char attr, flags;
if (*in == '\0')
return (0);