1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 21:47:43 +00:00

Kernel: Support new lines when doing critical printing

If we are printing strings in the critical path, handling new lines
require us to break abstraction a bit to print new lines.

Fixes #7562.
This commit is contained in:
Liav A 2021-06-03 17:41:27 +03:00 committed by Linus Groh
parent e8d85b0694
commit 47c1a31f89
6 changed files with 40 additions and 30 deletions

View file

@ -32,9 +32,9 @@ public:
virtual void show_cursor() override;
virtual void clear(size_t x, size_t y, size_t length) const override;
virtual void write(size_t x, size_t y, char ch, Color background, Color foreground) const override;
virtual void write(size_t x, size_t y, char ch) const override;
virtual void write(char ch) const override;
virtual void write(size_t x, size_t y, char ch, Color background, Color foreground, bool critical = false) const override;
virtual void write(size_t x, size_t y, char ch, bool critical = false) const override;
virtual void write(char ch, bool critical = false) const override;
virtual void enable() override;
virtual void disable() override;