mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 07:05:06 +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:
parent
7a85384e47
commit
00c21d1590
12 changed files with 78 additions and 3 deletions
|
@ -18,6 +18,8 @@ public:
|
|||
unsigned major() const { return m_major; }
|
||||
unsigned minor() const { return m_minor; }
|
||||
|
||||
virtual bool isTTY() const { return false; }
|
||||
|
||||
protected:
|
||||
CharacterDevice(unsigned major, unsigned minor) : m_major(major), m_minor(minor) { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue