mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +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
Notes:
sideshowbarker
2024-07-19 11:37:07 +09:00
Author: https://github.com/DrewStratford
Commit: 4c35c8d7fd
Pull-request: https://github.com/SerenityOS/serenity/pull/675
Reviewed-by: https://github.com/awesomekling
5 changed files with 148 additions and 4 deletions
|
@ -33,6 +33,7 @@ private:
|
|||
// ^TTY
|
||||
virtual ssize_t on_tty_write(const u8*, ssize_t) override;
|
||||
virtual StringView tty_name() const override;
|
||||
virtual void echo(u8) override { return; }
|
||||
|
||||
// ^CharacterDevice
|
||||
virtual const char* class_name() const override { return "VirtualConsole"; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue