summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-04-11 07:27:27 +0000
committernicm <nicm@openbsd.org>2013-04-11 07:27:27 +0000
commit168011f0fe704cae2750da2d3bdb863b759dede3 (patch)
treeecb036f5d83ddb4ff095228c607bbdcf426249ca /usr.bin/tmux/tty.c
parentcopy out a blank string if no wmesg, so userland can rely on reading (diff)
downloadwireguard-openbsd-168011f0fe704cae2750da2d3bdb863b759dede3.tar.xz
wireguard-openbsd-168011f0fe704cae2750da2d3bdb863b759dede3.zip
Send an SGR0 after turning on modifyOtherKeys to fix Terminal.app which
treats \033[>4;1m and \033[4;1m (bold+underline). Reported & tested by otto@.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index b50d55184d0..d6aec27292b 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.158 2013/03/27 11:17:12 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.159 2013/04/11 07:27:27 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -220,7 +220,7 @@ tty_start_tty(struct tty *tty)
tty_puts(tty, "\033[?1000l\033[?1006l\033[?1005l");
if (tty_term_has(tty->term, TTYC_XT))
- tty_puts(tty, "\033[c\033[>4;1m\033[?1004h");
+ tty_puts(tty, "\033[c\033[>4;1m\033[?1004h\033[m");
tty->cx = UINT_MAX;
tty->cy = UINT_MAX;
@@ -283,7 +283,7 @@ tty_stop_tty(struct tty *tty)
tty_raw(tty, "\033[?1000l\033[?1006l\033[?1005l");
if (tty_term_has(tty->term, TTYC_XT))
- tty_raw(tty, "\033[>4m\033[?1004l");
+ tty_raw(tty, "\033[>4m\033[?1004l\033[m");
tty_raw(tty, tty_term_string(tty->term, TTYC_RMCUP));