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

Minor TTY tweak.

This commit is contained in:
Andreas Kling 2018-11-16 18:12:22 +01:00
parent d2046e79cf
commit 4e2c2b9748
2 changed files with 10 additions and 2 deletions

View file

@ -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; }