From: Steve Bennett Date: Wed, 10 Aug 2016 00:57:04 +0000 (+1000) Subject: Don't disable OPOST X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3e28cb56b7f8cc378a546820610536774c799d3f;p=linenoise.git 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 --- 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,