1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

Add sys$ttyname_r and ttyname_r() + ttyname().

And print a greeting when sh starts up so we know which TTY we're on.
This commit is contained in:
Andreas Kling 2018-10-30 22:03:02 +01:00
parent 7a85384e47
commit 00c21d1590
12 changed files with 78 additions and 3 deletions

View file

@ -13,6 +13,8 @@ public:
virtual String ttyName() const = 0;
protected:
virtual bool isTTY() const final { return true; }
TTY(unsigned major, unsigned minor);
void emit(byte);