diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-16 18:12:22 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-16 18:12:22 +0100 |
commit | 4e2c2b9748e8cc505d52575a76f0dd6808bc6a17 (patch) | |
tree | 84203fb10a8308820e56f6e70ad1828e1bb3e9ac /Kernel/TTY.h | |
parent | d2046e79cfd915429b4755ef8e1338a1baa7815f (diff) | |
download | serenity-4e2c2b9748e8cc505d52575a76f0dd6808bc6a17.zip |
Minor TTY tweak.
Diffstat (limited to 'Kernel/TTY.h')
-rw-r--r-- | Kernel/TTY.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/TTY.h b/Kernel/TTY.h index b1a45ab9a2..9c3dfa2c21 100644 --- a/Kernel/TTY.h +++ b/Kernel/TTY.h @@ -46,6 +46,7 @@ public: void set_termios(const Unix::termios&); bool should_generate_signals() const { return m_termios.c_lflag & ISIG; } bool should_echo_input() const { return m_termios.c_lflag & ECHO; } + bool in_canonical_mode() const { return m_termios.c_lflag & ICANON; } protected: virtual bool isTTY() const final override { return true; } |