mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 09:18:55 +00:00
Kernel: Support userspace TTY graphics modesetting
This is a copy of linux's KDSETMODE/KDGETMODE console ioctl(2) interface.
This commit is contained in:
parent
bc4a0baa8f
commit
4b0be17c71
Notes:
sideshowbarker
2024-07-17 11:28:09 +09:00
Author: https://github.com/petelliott
Commit: 4b0be17c71
Pull-request: https://github.com/SerenityOS/serenity/pull/13829
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
4 changed files with 28 additions and 2 deletions
|
@ -48,6 +48,9 @@ public:
|
|||
|
||||
virtual ErrorOr<NonnullOwnPtr<KString>> pseudo_name() const = 0;
|
||||
|
||||
virtual bool is_graphical() const { return false; }
|
||||
virtual void set_graphical(bool) { }
|
||||
|
||||
protected:
|
||||
virtual ErrorOr<size_t> on_tty_write(UserOrKernelBuffer const&, size_t) = 0;
|
||||
void set_size(unsigned short columns, unsigned short rows);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue