From e349abb897597d6b1871e38ea5e2d5aeef5a7bac Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 30 May 2021 11:26:20 +0200 Subject: [PATCH] stty: allow utf8 input characters Signed-off-by: Joachim Wiberg --- src/stty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stty.c b/src/stty.c index 078f5e74..f96c0d71 100644 --- a/src/stty.c +++ b/src/stty.c @@ -113,7 +113,7 @@ void stty(int fd, speed_t speed) /* Timeouts, minimum chars and default flags */ term.c_cc[VTIME] = 0; term.c_cc[VMIN] = 1; - term.c_iflag = ICRNL|IXON|IXOFF; + term.c_iflag = ICRNL|IXON|IXOFF|IUTF8; term.c_oflag = OPOST|ONLCR; term.c_lflag |= ICANON|ISIG|ECHO|ECHOE|ECHOK|ECHOKE;