- Dec 2023
-
stackoverflow.com stackoverflow.com
-
It's possible to run commands in a pseudo terminal via the PTY module in order to preserve a user facing terminal-like behaviour.
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
unbuffer connects to a command via a pseudo-terminal (pty), which makes the system treat it as an interactive process, therefore not using any stdout buffering.
-
Addendum: seven years later, Windows finally supports pseudoconsoles. If you are running on Windows 10 v1809 or later, this new API should solve your problem.
-
-
docs.microsoft.com docs.microsoft.com
-
is a mechanism designed for creating an external host for character-mode subsystem activities that replace the user interactivity portion of the default console host window
My paraphrase: A pseudoterminal replaces (fakes/pretends to be?) the user interactivity portion.
-
ConPTY, or the Windows PTY
This is how I know that we are talking about a pseudoterminal here, because PTY means pseudoterminal...
-
How is a pseudoconsole different from a pseudoterminal ?
I'm guessing that's just a Microsoftism to make it easier to search/find things that are specifically about Microsoft's flavor of pseudoterminal.
I see they don't use the word "pseudoterminal" at all, but they do mention
ConPTY, or the Windows PTY
where PTY is another synonym/name for pseudoterminal. So I think we're safe in saying that this is talking about a pseudoterminal.
-
-
-
Going through different search systems brings us some fruits in the form of indistinct mumbling about the untimely closed I/O data streams, TTYs and PTYs (pseudoterminals) and all the rest of it.
-
-
en.wikipedia.org en.wikipedia.org
-
The role of the terminal emulator process is:
Shows the relationship between a "terminal emulator" and a pseudoterminal, as alluded to in the intro:
is a pair of pseudo-devices, one of which, the slave, emulates a hardware text terminal device, the other of which, the master, provides the means by which a terminal emulator process controls the slave.
-
TTY is right there in the name, but this article makes no attempt to clarify what exactly the relationship between a pseudoterminal and a TTY. I feel like a whole paragraph about the relation to TTY would be warranted, including a link to TTY article, of course, which does link [back] to and explain some of the relation to pseudoterminal:
In many computing contexts, "TTY" has become the name for any text terminal, such as an external console device, a user dialing into the system on a modem on a serial port device, a printing or graphical computer terminal on a computer's serial port or the RS-232 port on a USB-to-RS-232 converter attached to a computer's USB port, or even a terminal emulator application in the window system using a pseudoterminal device.
-
-
en.wikipedia.org en.wikipedia.org
-
Streams could also be used for inter-process communication, by connecting two processes to pseudoterminals.
-
-
empty.sourceforge.net empty.sourceforge.net
-
empty is an utility that provides an interface to execute and/or interact with processes under pseudo-terminal sessions (PTYs). This tool is definitely useful in programming of shell scripts designed to communicate with interactive programs like telnet, ssh, ftp, etc.
-
-
en.wikipedia.org en.wikipedia.org
-
In many computing contexts, "TTY" has become the name for any text terminal, such as an external console device, a user dialing into the system on a modem on a serial port device, a printing or graphical computer terminal on a computer's serial port or the RS-232 port on a USB-to-RS-232 converter attached to a computer's USB port, or even a terminal emulator application in the window system using a pseudoterminal device.
It's still confusing, but this at least helps/tries to clarify.
-
-
stackoverflow.com stackoverflow.com
-
if you really need the child process to see a TTY, you can create a PTY.
-
-
linusakesson.net linusakesson.net
-
I didn't get exactly how pty came into picture and what is the usage of that. Looking forward to get more info on that.
-
as you may have guessed, things get even more complicated when you start running pseudo terminals inside pseudo terminals, à la screen(1) or ssh(1).
-
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.
-