Set tty raw mode when using a pty.

This commit is contained in:
Landon Fuller 2012-10-16 21:17:38 -04:00 committed by Landon Fuller
parent b4940ae29d
commit 2c8507ea97

View File

@ -222,7 +222,7 @@ int16 XSERDPort::open(uint16 config)
}
// Configure port for raw mode
if (protocol == serial) {
if (protocol == serial || protocol == pty) {
if (tcgetattr(fd, &mode) < 0)
goto open_error;
cfmakeraw(&mode);