Commit 3aec413b by Andrey Jr. Melnikov Committed by Stéphane Graber

Switch console pty to raw mode. Without this some ncurses-based programs behave incorrectly

parent 02fdb536
...@@ -262,9 +262,10 @@ int lxc_setup_tios(int fd, struct termios *oldtios) ...@@ -262,9 +262,10 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
/* Remove the echo characters and signal reception, the echo /* Remove the echo characters and signal reception, the echo
* will be done with master proxying */ * will be done with master proxying */
newtios.c_iflag &= ~IGNBRK; newtios.c_iflag &= ~(IGNBRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON|IXANY|IXOFF);
newtios.c_iflag &= BRKINT; newtios.c_iflag &= BRKINT;
newtios.c_lflag &= ~(ECHO|ICANON|ISIG); newtios.c_lflag &= ~(ECHO|ICANON|ISIG|IEXTEN|ECHOE|ECHOK|ECHONL);
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