mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
TTY: Flush input on signal character.
We now flush the input when we recieve a signal character. This can be disabled using the newly implemented NOFLSH attribute.
This commit is contained in:
parent
233ea7eb1d
commit
b880f1928a
Notes:
sideshowbarker
2024-07-19 11:29:19 +09:00
Author: https://github.com/DrewStratford
Commit: b880f1928a
Pull-request: https://github.com/SerenityOS/serenity/pull/713
Reviewed-by: https://github.com/awesomekling
2 changed files with 11 additions and 0 deletions
|
@ -28,6 +28,7 @@ public:
|
|||
|
||||
void 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; }
|
||||
bool in_canonical_mode() const { return m_termios.c_lflag & ICANON; }
|
||||
|
||||
|
@ -46,6 +47,7 @@ protected:
|
|||
void do_backspace();
|
||||
void erase_word();
|
||||
void kill_line();
|
||||
void flush_input();
|
||||
|
||||
bool is_eol(u8) const;
|
||||
bool is_eof(u8) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue