1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +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:
Peter Elliott 2022-04-28 01:17:32 -06:00 committed by Andreas Kling
parent bc4a0baa8f
commit 4b0be17c71
4 changed files with 28 additions and 2 deletions

View file

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