Merge pull request #19 from landonf/landonf-pty-fix

Set tty raw mode when using a pty.
This commit is contained in:
asvitkine 2013-02-28 20:56:14 -08:00
commit ef5a6ef3a7

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