summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.c3
-rw-r--r--init/init.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/init.c b/init.c
index 22bedd9..d65220c 100644
--- a/init.c
+++ b/init.c
@@ -278,7 +278,8 @@ static void set_term(int fd)
/* Make it be sane */
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
- tty.c_cflag |= HUPCL|CLOCAL;
+ tty.c_cflag |= CREAD|HUPCL|CLOCAL;
+
/* input modes */
tty.c_iflag = ICRNL | IXON | IXOFF;
diff --git a/init/init.c b/init/init.c
index 22bedd9..d65220c 100644
--- a/init/init.c
+++ b/init/init.c
@@ -278,7 +278,8 @@ static void set_term(int fd)
/* Make it be sane */
tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD;
- tty.c_cflag |= HUPCL|CLOCAL;
+ tty.c_cflag |= CREAD|HUPCL|CLOCAL;
+
/* input modes */
tty.c_iflag = ICRNL | IXON | IXOFF;