1
Fork 0
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:
Andreas Kling 2018-10-30 13:59:29 +01:00
parent bd2b5327d0
commit 68739dc43e
22 changed files with 611 additions and 344 deletions

25
Kernel/TTY.cpp Normal file
View 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;
}