From 3e28cb56b7f8cc378a546820610536774c799d3f Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Wed, 10 Aug 2016 10:57:04 +1000 Subject: [PATCH] Don't disable OPOST Is it isn't required by linenoise and this helps with multithreaded applications where another thread produces output. Ref github issue #18 Signed-off-by: Steve Bennett --- linenoise.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linenoise.c b/linenoise.c index e34ef00..e6f01bc 100644 --- a/linenoise.c +++ b/linenoise.c @@ -239,8 +239,8 @@ fatal: /* input modes: no break, no CR to NL, no parity check, no strip char, * no start/stop output control. */ raw.c_iflag &= ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON); - /* output modes - disable post processing */ - raw.c_oflag &= ~(OPOST); + /* output modes - actually, no need to disable post processing */ + /*raw.c_oflag &= ~(OPOST);*/ /* control modes - set 8 bit chars */ raw.c_cflag |= (CS8); /* local modes - choing off, canonical off, no extended functions, -- 2.44.0