diff options
author | 2017-03-22 07:16:54 +0000 | |
---|---|---|
committer | 2017-03-22 07:16:54 +0000 | |
commit | 1779e050886c6a5dc98cb54e281b78d8f717b134 (patch) | |
tree | 2495992022ccd229c912df1b2290d4d796bc5b3f /usr.bin/tmux/input.c | |
parent | zap some historical notes and an out of date url; (diff) | |
download | wireguard-openbsd-1779e050886c6a5dc98cb54e281b78d8f717b134.tar.xz wireguard-openbsd-1779e050886c6a5dc98cb54e281b78d8f717b134.zip |
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.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r-- | usr.bin/tmux/input.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index 6d5b40fbeb4..6b2706b4c81 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.117 2017/02/19 07:55:11 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.118 2017/03/22 07:16:54 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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: |