说明: pty - pseudoterminal interfaces A pseudoterminal (sometimes abbreviated "pty") is a pair of virtual The slave end of the pseudoterminal provides an interface that behaves exactly like a classical terminal A process that expects to be connected to a terminal, can open the slave end of a pseudoterminal and
主要差异 平台支持 Pexpect:Unix-like系统(Linux、macOS等) WinPexpect:Windows 依赖 Pexpect:依赖pty(pseudoterminal)支持,Windows
., out-of-band data on TCP socket; pseudoterminal master in packet mode has seen
mount类型为bind mount option:mount的选项,参见mount process:定义了容器的进程信息 terminal:默认false,为true时,linux系统会为该进程分配一个pseudoterminal
Pseudoterminal devices are emulated terminals that understand the I/O features of real terminals. Two common terminal devices are /dev/tty1 (the first virtual console) and /dev/pts/0 (the first pseudoterminal
/dev/ptmx 是一个字符设备文件,当进程打开 /dev/ptmx 文件时,进程会同时获得一个指向 pseudoterminal master(ptm)的文件描述符和一个在 /dev/pts 目录中创建的 pseudoterminal slave(pts) 设备。