Terminal

Physical Terminals

In UNIX, /dev/tty* is any device that acts like a "teletype", ie, terminal. (Called teletype because that's what we had for terminals in those benighted days.)

This is a typical physical terminals looks like.

Pseudo Terminals

Things get more flexible (and abstract) if we move the terminal emulation into userland. This is how xterm(1) and its clones work. To facilitate moving the terminal emulation into userland, while still keeping the TTY subsystem (session management and line discipline) intact, the pseudo terminal or pty was invented.

Reference:

https://www.reddit.com/r/programming/comments/41u5hw/what_is_the_exact_difference_between_a_terminal_a/

results matching ""

    No results matching ""