mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
Add basic PTY support.
For now, there are four hard-coded PTYs: /dev/pt{m,s}[0123] Use this in the Terminal to open a pty pair and spawn a shell.
This commit is contained in:
parent
ecb4ab0943
commit
2f74c2f430
21 changed files with 287 additions and 10 deletions
|
@ -9,6 +9,7 @@
|
|||
|
||||
#ifdef SERENITY
|
||||
class TTY;
|
||||
class MasterPTY;
|
||||
class Process;
|
||||
#endif
|
||||
|
||||
|
@ -46,6 +47,10 @@ public:
|
|||
bool is_tty() const;
|
||||
const TTY* tty() const;
|
||||
TTY* tty();
|
||||
|
||||
bool is_master_pty() const;
|
||||
const MasterPTY* master_pty() const;
|
||||
MasterPTY* master_pty();
|
||||
#endif
|
||||
|
||||
InodeMetadata metadata() const { return m_vnode->metadata(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue