]> git.lizzy.rs Git - linenoise.git/commitdiff
Don't disable OPOST
authorSteve Bennett <steveb@workware.net.au>
Wed, 10 Aug 2016 00:57:04 +0000 (10:57 +1000)
committerSteve Bennett <steveb@workware.net.au>
Wed, 10 Aug 2016 00:58:59 +0000 (10:58 +1000)
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 <steveb@workware.net.au>
linenoise.c

index e34ef00c6ce8e3e4a5f4fa8aecd34776d7e72db4..e6f01bc707712dd76f683199ad2b878412ae5d4c 100644 (file)
@@ -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,