Huy's Notes
Notes on Terminal

Notes on Terminal

#linux #os

Pseudoterminal Is a pair pseudo-devices that we need to use, if we're implementing a terminal emulator.

There are two devices: ~master~ and ~slave~. Both connected together.

The ~master~ connected to the user's side (terminal emulator), to read the user's input and display information, since the ~slave~ connected to the client (such as bash or shell).

In BSD systems, the files are:

- master: /dev/pty*
- slave: /dev/tty*

References

Referred in


If you think this note resonated, be it positive or negative, please feel free to send me an email and we can talk.