mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
TTY: Implement Canonical mode and basic echoing.
The TTY driver now respects the ICANON flag, enabling basic line editing like VKILL, VERASE, VEOF and VWERASE. Additionally, ICANON is now set by default. Basic echoing has can now be enabled via the ECHO flag, though more complicated echoing like ECHOCTL or ECHONL has not been implemented.
This commit is contained in:
parent
67041f3a8c
commit
4c35c8d7fd
5 changed files with 148 additions and 4 deletions
|
@ -16,6 +16,7 @@ private:
|
|||
// ^TTY
|
||||
virtual StringView tty_name() const override;
|
||||
virtual ssize_t on_tty_write(const u8*, ssize_t) override;
|
||||
virtual void echo(u8) override;
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual bool can_read(FileDescription&) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue