mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
Kernel+LibC: Default to 8-bit characters in TTY
Some ports (like `bc` with history enabled) sensibly set the termios character size to 8 bits. Previously, we left the character size value (given by the bitmask CSIZE) as zero by default (meaning 5 bits per character), and returned ENOTIMPL whenever someone modified it. This was dumb.
This commit is contained in:
parent
0e68550c05
commit
5f6030b13c
2 changed files with 6 additions and 6 deletions
|
@ -11,7 +11,7 @@
|
|||
#define TTYDEF_LFLAG_NOECHO (ISIG | ICANON)
|
||||
#define TTYDEF_LFLAG_ECHO (TTYDEF_LFLAG_NOECHO | ECHO | ECHOE | ECHOK | ECHONL)
|
||||
#define TTYDEF_LFLAG TTYDEF_LFLAG_ECHO
|
||||
#define TTYDEF_CFLAG (0)
|
||||
#define TTYDEF_CFLAG (CS8)
|
||||
#define TTYDEF_SPEED (B9600)
|
||||
|
||||
#define CTRL(c) (c & 0x1F)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue