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

terminal: ensure newlines are turned into newlines+carriage return fo…
This commit is contained in:
Stéphane Graber 2021-07-01 08:56:59 -04:00 committed by GitHub
commit d31bfd247d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;