Unverified Commit d31bfd24 by Stéphane Graber Committed by GitHub

Merge pull request #3892 from brauner/2021-07-01.fixes.2

terminal: ensure newlines are turned into newlines+carriage return fo…
parents 161b0ff4 90275474
...@@ -474,7 +474,7 @@ int lxc_setup_tios(int fd, struct termios *oldtios) ...@@ -474,7 +474,7 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
#ifdef IEXTEN #ifdef IEXTEN
newtios.c_lflag &= ~IEXTEN; newtios.c_lflag &= ~IEXTEN;
#endif #endif
newtios.c_oflag &= ~ONLCR; newtios.c_oflag |= ONLCR;
newtios.c_oflag |= OPOST; newtios.c_oflag |= OPOST;
newtios.c_cc[VMIN] = 1; newtios.c_cc[VMIN] = 1;
newtios.c_cc[VTIME] = 0; newtios.c_cc[VTIME] = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment