summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-05-13 20:10:23 +0000
committernicm <nicm@openbsd.org>2019-05-13 20:10:23 +0000
commitd37269ef36fa6f867093ec825e7013d703d7e218 (patch)
treefe5b00ca4e52ecd24a8c376479f4eb0a9e1e9936 /usr.bin/tmux/tty.c
parentAlways include Lock in the menu. (diff)
downloadwireguard-openbsd-d37269ef36fa6f867093ec825e7013d703d7e218.tar.xz
wireguard-openbsd-d37269ef36fa6f867093ec825e7013d703d7e218.zip
Add support for overline (SGR 53), from Ricardo Banffy.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 027b9462204..6c6aecfb58a 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.323 2019/04/25 19:03:43 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.324 2019/05/13 20:10:23 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -2199,6 +2199,8 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc,
tty_putcode(tty, TTYC_INVIS);
if (changed & GRID_ATTR_STRIKETHROUGH)
tty_putcode(tty, TTYC_SMXX);
+ if (changed & GRID_ATTR_OVERLINE)
+ tty_putcode(tty, TTYC_SMOL);
if ((changed & GRID_ATTR_CHARSET) && tty_acs_needed(tty))
tty_putcode(tty, TTYC_SMACS);
}