mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-23 04:33:24 +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
|
// Configure port for raw mode
|
||||||
if (protocol == serial) {
|
if (protocol == serial || protocol == pty) {
|
||||||
if (tcgetattr(fd, &mode) < 0)
|
if (tcgetattr(fd, &mode) < 0)
|
||||||
goto open_error;
|
goto open_error;
|
||||||
cfmakeraw(&mode);
|
cfmakeraw(&mode);
|
||||||
|
Loading…
Reference in New Issue
Block a user