mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Set IUTF8 in termios where supported, suggested by Egmont Koblinger.
This commit is contained in:
parent
60069fe8fe
commit
db7570daab
4
window.c
4
window.c
@ -681,6 +681,10 @@ window_pane_spawn(struct window_pane *wp, const char *cmd, const char *shell,
|
|||||||
if (tio != NULL)
|
if (tio != NULL)
|
||||||
memcpy(tio2.c_cc, tio->c_cc, sizeof tio2.c_cc);
|
memcpy(tio2.c_cc, tio->c_cc, sizeof tio2.c_cc);
|
||||||
tio2.c_cc[VERASE] = '\177';
|
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)
|
if (tcsetattr(STDIN_FILENO, TCSANOW, &tio2) != 0)
|
||||||
fatal("tcgetattr failed");
|
fatal("tcgetattr failed");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user