mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
Set tty raw mode when using a pty.
This commit is contained in:
parent
b4940ae29d
commit
2c8507ea97
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user