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

@ -1764,6 +1764,9 @@ input_csi_dispatch_sgr(struct input_ctx *ictx)
case 8:
gc->attr |= GRID_ATTR_HIDDEN;
break;
case 9:
gc->attr |= GRID_ATTR_STRIKETHROUGH;
break;
case 22:
gc->attr &= ~(GRID_ATTR_BRIGHT|GRID_ATTR_DIM);
break;
@ -1782,6 +1785,9 @@ input_csi_dispatch_sgr(struct input_ctx *ictx)
case 28:
gc->attr &= ~GRID_ATTR_HIDDEN;
break;
case 29:
gc->attr &= ~GRID_ATTR_STRIKETHROUGH;
break;
case 30:
case 31:
case 32: