terminal: ensure newlines are turned into newlines+carriage return for terminal output

Fixes: #3879 Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent e7513796
...@@ -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