mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +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
Notes:
sideshowbarker
2024-07-19 18:36:21 +09:00
Author: https://github.com/awesomekling
Commit: 00c21d1590
12 changed files with 78 additions and 3 deletions
|
@ -4,6 +4,8 @@
|
|||
#include "InodeMetadata.h"
|
||||
#include <AK/ByteBuffer.h>
|
||||
|
||||
class TTY;
|
||||
|
||||
class FileHandle {
|
||||
public:
|
||||
explicit FileHandle(RetainPtr<VirtualFileSystem::Node>&&);
|
||||
|
@ -24,6 +26,9 @@ public:
|
|||
|
||||
bool isDirectory() const;
|
||||
|
||||
bool isTTY() const;
|
||||
const TTY* tty() const;
|
||||
|
||||
InodeMetadata metadata() const { return m_vnode->metadata(); }
|
||||
|
||||
VirtualFileSystem::Node* vnode() { return m_vnode.ptr(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue