From 7b243f8f7df506a1b3171f9aafb5d1269571b58f Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 6 Oct 2018 18:07:14 +0100 Subject: [PATCH] init: fix termios settings for character size The termios code in init forgets to set the character width in bits so defaults to 5 bit chars. Needless to say now we have implemented character widths in termios settings in some drivers this does not end well. --- Applications/util/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applications/util/init.c b/Applications/util/init.c index cf4a5525..4c7b148e 100644 --- a/Applications/util/init.c +++ b/Applications/util/init.c @@ -666,7 +666,7 @@ static void envset(const char *a, const char *b) static struct termios tref = { BRKINT | ICRNL, OPOST | ONLCR, - CREAD | HUPCL, + CS8 | CREAD | HUPCL, ISIG | ICANON | ECHO | ECHOE | ECHOK | IEXTEN, {CTRL('D'), 0, CTRL('H'), CTRL('C'), CTRL('U'), CTRL('\\'), CTRL('Q'), CTRL('S'), -- 2.34.1