diff options
author | Daniel Bertalan <dani@danielbertalan.dev> | 2021-05-16 19:00:48 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-17 11:00:48 +0200 |
commit | f0375e3efe562caf5c981ba3d964bec69dea1b14 (patch) | |
tree | dbf3badc9d3fd1df31bd2d1d4b21e85b6d482df6 /Kernel/TTY/TTY.h | |
parent | b1b0db946e9d1ec66660f70a4ec05e412bb331b6 (diff) | |
download | serenity-f0375e3efe562caf5c981ba3d964bec69dea1b14.zip |
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.
Diffstat (limited to 'Kernel/TTY/TTY.h')
-rw-r--r-- | Kernel/TTY/TTY.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/TTY.h b/Kernel/TTY/TTY.h index 569cfbdc2c..3f5bd0efd2 100644 --- a/Kernel/TTY/TTY.h +++ b/Kernel/TTY/TTY.h @@ -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; } |