1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +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

@ -38,7 +38,7 @@ public:
return 0;
}
void set_termios(const termios&);
int set_termios(const termios&);
bool should_generate_signals() const { return m_termios.c_lflag & ISIG; }
bool should_flush_on_signal() const { return !(m_termios.c_lflag & NOFLSH); }
bool should_echo_input() const { return m_termios.c_lflag & ECHO; }