mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-09-03 21:29:03 +00:00
Merge pull request #19 from landonf/landonf-pty-fix
Set tty raw mode when using a pty.
This commit is contained in:
commit
ef5a6ef3a7
@ -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