From db7570daabb2ffb138f96938bcc85b163596b405 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 20 Jan 2012 20:18:20 +0000 Subject: [PATCH] Set IUTF8 in termios where supported, suggested by Egmont Koblinger. --- window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/window.c b/window.c index e170dd27..97337207 100644 --- a/window.c +++ b/window.c @@ -681,6 +681,10 @@ window_pane_spawn(struct window_pane *wp, const char *cmd, const char *shell, if (tio != NULL) memcpy(tio2.c_cc, tio->c_cc, sizeof tio2.c_cc); tio2.c_cc[VERASE] = '\177'; +#ifdef IUTF8 + if (options_get_number(&wp->window->options, "utf8")) + tio2.c_iflag |= IUTF8; +#endif if (tcsetattr(STDIN_FILENO, TCSANOW, &tio2) != 0) fatal("tcgetattr failed");