mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
17 lines
360 B
C
17 lines
360 B
C
|
#pragma once
|
||
|
|
||
|
#include <VirtualFileSystem/CharacterDevice.h>
|
||
|
|
||
|
class TTY : public CharacterDevice {
|
||
|
public:
|
||
|
virtual ~TTY() override;
|
||
|
|
||
|
virtual ssize_t read(byte*, size_t) override;
|
||
|
virtual ssize_t write(const byte*, size_t) override;
|
||
|
virtual bool hasDataAvailableForRead() const override;
|
||
|
|
||
|
protected:
|
||
|
TTY(unsigned major, unsigned minor);
|
||
|
};
|
||
|
|