mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
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:
6
input.c
6
input.c
@ -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:
|
||||
|
Reference in New Issue
Block a user