diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2012-01-20 20:18:20 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2012-01-20 20:18:20 +0000 |
commit | db7570daabb2ffb138f96938bcc85b163596b405 (patch) | |
tree | a68cf75ebb755ee38c5e6b757c35683075270b4c | |
parent | 60069fe8fe9357b2cb6b307c1e8613ea2a7b8f32 (diff) | |
download | rtmux-db7570daabb2ffb138f96938bcc85b163596b405.tar.gz rtmux-db7570daabb2ffb138f96938bcc85b163596b405.tar.bz2 rtmux-db7570daabb2ffb138f96938bcc85b163596b405.zip |
Set IUTF8 in termios where supported, suggested by Egmont Koblinger.
-rw-r--r-- | window.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); |