mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
Start working on virtual consoles/TTYs.
This is a mess right now, but I'd rather commit as I go.
This commit is contained in:
parent
bd2b5327d0
commit
68739dc43e
22 changed files with 611 additions and 344 deletions
25
Kernel/TTY.cpp
Normal file
25
Kernel/TTY.cpp
Normal file
|
@ -0,0 +1,25 @@
|
|||
#include "TTY.h"
|
||||
|
||||
TTY::TTY(unsigned major, unsigned minor)
|
||||
: CharacterDevice(major, minor)
|
||||
{
|
||||
}
|
||||
|
||||
TTY::~TTY()
|
||||
{
|
||||
}
|
||||
|
||||
ssize_t TTY::read(byte* buffer, size_t size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
ssize_t TTY::write(const byte* buffer, size_t size)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool TTY::hasDataAvailableForRead() const
|
||||
{
|
||||
return false;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue