Skip to main content
added 10 characters in body
Source Link

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?

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 from tty?

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, unlike tty, one buffer per tty device?

Source Link

Do pty devices have two input buffers?

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 from tty?