summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tty.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-06-02 23:39:32 +0000
committernicm <nicm@openbsd.org>2009-06-02 23:39:32 +0000
commitdecc9b6fcce9f747aea526efab846a1156d443e0 (patch)
tree79dc2f44eb1243617f8c91c1494ab8287a0ac398 /usr.bin/tmux/tty.c
parentFix the way apache reports Content-Length by promoting the clength field (diff)
downloadwireguard-openbsd-decc9b6fcce9f747aea526efab846a1156d443e0.tar.xz
wireguard-openbsd-decc9b6fcce9f747aea526efab846a1156d443e0.zip
Recent code to try and detect if a terminal supports UTF-8 by printing to it
fails spectacularly on (at least) sparc64, so disable it for now. Thanks to naddy and Josh Elsasser for help and testing.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r--usr.bin/tmux/tty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index c8a61f96d7b..e4d023a52d0 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.2 2009/06/02 23:39:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -134,7 +134,9 @@ tty_start_tty(struct tty *tty)
struct termios tio;
int what;
+#if 0
tty_detect_utf8(tty);
+#endif
if (tcgetattr(tty->fd, &tty->tio) != 0)
fatal("tcgetattr failed");
@@ -204,6 +206,7 @@ tty_stop_tty(struct tty *tty)
tty_raw(tty, "\033[?1000l");
}
+#if 0
void
tty_detect_utf8(struct tty *tty)
{
@@ -278,6 +281,7 @@ tty_detect_utf8(struct tty *tty)
if (tcsetattr(tty->fd, TCSANOW, &old_tio) != 0)
fatal("tcsetattr failed");
}
+#endif
void
tty_fill_acs(struct tty *tty)