bootloader: Refactor console functions into the VFS ConsoleNode class.
This way it becomes much easier to write multiple console implementations in one bootloader. Tested for bios_ia32 and efi. Change-Id: I67134f5c3de109b15d46898864ba7f51c6592afc Reviewed-on: https://review.haiku-os.org/c/haiku/+/4642 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
f6f9c751d6
commit
5e43707307
@@ -89,6 +89,13 @@ class ConsoleNode : public Node {
|
||||
|
||||
virtual ssize_t Read(void *buffer, size_t bufferSize);
|
||||
virtual ssize_t Write(const void *buffer, size_t bufferSize);
|
||||
|
||||
virtual void ClearScreen() = 0;
|
||||
virtual int32 Width() = 0;
|
||||
virtual int32 Height() = 0;
|
||||
virtual void SetCursor(int32 x, int32 y) = 0;
|
||||
virtual void SetCursorVisible(bool visible) = 0;
|
||||
virtual void SetColors(int32 foreground, int32 background) = 0;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user