1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

Kernel+LibC: Support more termios settings in TTY

This commit adds support for the various ECHO* lflags and fixes some
POSIX conformance issues around newline handling. Also included are
error messages when setting not implemented settings.
This commit is contained in:
Daniel Bertalan 2021-05-16 19:00:48 +02:00 committed by Andreas Kling
parent b1b0db946e
commit f0375e3efe
3 changed files with 116 additions and 36 deletions

View file

@ -6,7 +6,7 @@
#pragma once
#define TTYDEF_IFLAG (ICRNL | IXON | IXANY)
#define TTYDEF_IFLAG (ICRNL)
#define TTYDEF_OFLAG (OPOST | ONLCR)
#define TTYDEF_LFLAG_NOECHO (ISIG | ICANON)
#define TTYDEF_LFLAG_ECHO (TTYDEF_LFLAG_NOECHO | ECHO | ECHOE | ECHOK | ECHONL)