When terminal devices are in cooked mode, bytes input into terminal is cached and processed by kernel, some bytes are used for line editting and "cosumed", making read return one line a time.
But for pty, Output to master fd can be read as input from slave fd and vice versa, so my question is:
Do pty devices have two independent input buffers, which is different fromunlike tty, one buffer per tty device?
 
                