diff options
-rw-r--r-- | term/ptyio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/term/ptyio.c b/term/ptyio.c index 4cc8916f..e406bf3b 100644 --- a/term/ptyio.c +++ b/term/ptyio.c @@ -80,6 +80,9 @@ pty_open_hook (struct trivfs_control *cntl, } ptyopen = 1; + + /* Re-initialize pty state. */ + external_processing = 0; packet_mode = 0; user_ioctl_mode = 0; control_byte = 0; |