Skip to content
Snippets Groups Projects
Commit 555c8f9a authored by Takuya ASADA's avatar Takuya ASADA Committed by Pekka Enberg
Browse files

VGA: Add input_ready() and readch() stubs


To use VGAConsole class, add empty input_ready() and readch().

Signed-off-by: default avatarTakuya ASADA <syuu@cloudius-systems.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent cc6b3a3c
No related branches found
No related tags found
No related merge requests found
...@@ -44,3 +44,13 @@ void VGAConsole::newline() ...@@ -44,3 +44,13 @@ void VGAConsole::newline()
} }
_col = 0; _col = 0;
} }
bool VGAConsole::input_ready()
{
return false;
}
char VGAConsole::readch()
{
return 0;
}
...@@ -17,6 +17,8 @@ public: ...@@ -17,6 +17,8 @@ public:
explicit VGAConsole(sched::thread* consumer, const termios *tio); explicit VGAConsole(sched::thread* consumer, const termios *tio);
virtual void write(const char *str, size_t len); virtual void write(const char *str, size_t len);
virtual void newline(); virtual void newline();
virtual bool input_ready();
virtual char readch();
private: private:
unsigned _col = 0; unsigned _col = 0;
static const unsigned ncols = 80, nrows = 25; static const unsigned ncols = 80, nrows = 25;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment