Kernel: Make tty overload correct has_data() function

This allows snake game to work again :)
This commit is contained in:
Bananymous 2023-09-28 11:54:12 +03:00
parent 85b1252b9e
commit f7097398ca
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ namespace Kernel
void putchar(uint8_t ch);
virtual void putchar_impl(uint8_t ch) = 0;
bool has_data() const;
virtual bool has_data_impl() const override;
protected:
TTY(mode_t mode, uid_t uid, gid_t gid)

View File

@ -328,7 +328,7 @@ namespace Kernel
return count;
}
bool TTY::has_data() const
bool TTY::has_data_impl() const
{
LockGuard _(m_lock);
return m_output.flush;