Browse Source

tty: character size is 8 bits

K. Lange 2 years ago
parent
commit
e577016371
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/fs/tty.c

+ 1 - 1
kernel/fs/tty.c

@@ -405,7 +405,7 @@ pty_t * pty_new(struct winsize * size) {
 	pty->tios.c_iflag = ICRNL | BRKINT;
 	pty->tios.c_oflag = ONLCR | OPOST;
 	pty->tios.c_lflag = ECHO | ECHOE | ECHOK | ICANON | ISIG | IEXTEN;
-	pty->tios.c_cflag = CREAD;
+	pty->tios.c_cflag = CREAD | CS8;
 	pty->tios.c_cc[VEOF]   =  4; /* ^D */
 	pty->tios.c_cc[VEOL]   =  0; /* Not set */
 	pty->tios.c_cc[VERASE] = '\b';