summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/input.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2021-02-15 14:22:35 +0000
committernicm <nicm@openbsd.org>2021-02-15 14:22:35 +0000
commit5ff7e4fe37f74f5724a47ac40215412855b984d6 (patch)
treee3a77d7b7e0a09f0262121dba1ede694be0804f7 /usr.bin/tmux/input.c
parentRework tick_msg() to make messages displayed during startup more (diff)
downloadwireguard-openbsd-5ff7e4fe37f74f5724a47ac40215412855b984d6.tar.xz
wireguard-openbsd-5ff7e4fe37f74f5724a47ac40215412855b984d6.zip
Make SGR 6 (rapid blink) the same as SGR 5 (blink) and make SGR 21 to
the same as SGR 4:2, it is an old alternative. GitHub issue 2567.
Diffstat (limited to 'usr.bin/tmux/input.c')
-rw-r--r--usr.bin/tmux/input.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c
index 862eb9a5626..cbf25b2ec3f 100644
--- a/usr.bin/tmux/input.c
+++ b/usr.bin/tmux/input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: input.c,v 1.186 2021/02/15 09:39:38 nicm Exp $ */
+/* $OpenBSD: input.c,v 1.187 2021/02/15 14:22:35 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2101,6 +2101,7 @@ input_csi_dispatch_sgr(struct input_ctx *ictx)
gc->attr |= GRID_ATTR_UNDERSCORE;
break;
case 5:
+ case 6:
gc->attr |= GRID_ATTR_BLINK;
break;
case 7:
@@ -2112,6 +2113,10 @@ input_csi_dispatch_sgr(struct input_ctx *ictx)
case 9:
gc->attr |= GRID_ATTR_STRIKETHROUGH;
break;
+ case 21:
+ gc->attr &= ~GRID_ATTR_ALL_UNDERSCORE;
+ gc->attr |= GRID_ATTR_UNDERSCORE_2;
+ break;
case 22:
gc->attr &= ~(GRID_ATTR_BRIGHT|GRID_ATTR_DIM);
break;