aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-02 23:39:32 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-02 23:39:32 +0000
commit3f76a973ee6b19071df1839cd218b2f6071c4380 (patch)
tree549726c92fd71b8753503a187a5b97b077a338da /tty.c
parent4215d009a518d2763203a71e1ed51944951fd46e (diff)
downloadrtmux-3f76a973ee6b19071df1839cd218b2f6071c4380.tar.gz
rtmux-3f76a973ee6b19071df1839cd218b2f6071c4380.tar.bz2
rtmux-3f76a973ee6b19071df1839cd218b2f6071c4380.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 'tty.c')
-rw-r--r--tty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index 4d81910d..06ce9248 100644
--- a/tty.c
+++ b/tty.c
@@ -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)