Kernel: Improve error handling when setting TTY font

This commit is contained in:
2025-04-18 02:42:24 +03:00
parent d6667844de
commit cef8779bf7
6 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ namespace Kernel
class TTY : public CharacterDevice
{
public:
virtual void set_font(const LibFont::Font&) {};
virtual BAN::ErrorOr<void> set_font(LibFont::Font&&) { return BAN::Error::from_errno(EINVAL); }
void set_foreground_pgrp(pid_t pgrp) { m_foreground_pgrp = pgrp; }
pid_t foreground_pgrp() const { return m_foreground_pgrp; }