Clarification (which might answer some of your questions): I think you meant pty (not ptty), which is a pseudo-tty / pseudo-terminal.
A tty (/ dev / ttyx) - means teletype - these are the original terminals (a linear printer is used for output and a keyboard for input!). A terminal is simply a user interface device that uses text for input and output.
Pty (/dev/pty/n) - , , , , "" . telnet/SSH GNOME.
, ssh ls, ls , SSH.
EDIT:
, tty pty, usermode. . : /dev/tty 1 . / char, tty_io.c n_tty.c vt.c( ). tty_open , , , , ...
Tty/pty , ( "", ). , ... ( - )
EDIT2:
, , ...
, tty . - , "". , , ..
, ....