$ | >

Pseudoterminals

Is there a way to implement custom Console API backend? This decoupling will allow independent developers to implement their own console UIs which will be a dramatic improvement of the current situation I think: the many different developers the better.

Look at the way UNIX terminal emulators work: for each terminal session they create a master-***** pts pair and then the following happens (http://man7.org/linux/man-pages/man4/pts.4.html):

Once both the pseudoterminal master and ***** are open, the ***** provides processes with an interface that is identical to that of a real terminal.
Data written to the ***** is presented on the master file descriptor as input. Data written to the master is presented to the ***** as input.
In practice, pseudoterminals are used for implementing terminal emulators such as xterm(1), in which data read from the pseudoterminal master is interpreted by the application in the same way a real terminal would interpret the data, and for implementing remote-login programs such as sshd(8), in which data read from the pseudoterminal master is sent across the network to a client program that is connected to a terminal or terminal emulator.

50 votes
Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)

We’ll send you updates on this idea

Anatoly Zaretsky shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

7 comments

Sign in
(thinking…)
Sign in with: Facebook Google
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base