python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Can't send input to a process over a pty in C
I'm trying to run a process (/usr/bin/calc) on the master/main side, and interact with it on the slave/secondary side, but for some reason, the calc process isn't reading input from the main end of th...
unami
Votes: 0
Answers: 0
Keyevents in Pseudoterminals
I have a program to create pseudo terminals which uses https://github.com/creack/pty for Unix and https://github.com/ActiveState/termtest/conpty for windows.
I have a terminal emulator which uses a We...
Dificilcoder
Votes: 0
Answers: 1
Get environment variables from pseudo-terminal
I have a program that uses https://github.com/creack/pty to create pseudo terminals. Given a command, it creates a file object where you can read and write and it will work as stdin and stdout.
I use ...
Dificilcoder
Votes: 0
Answers: 1
Python crashes when getting ttyname
I'm creating a pseudo terminal pair in Python, on Mac OS, and then trying to get their names.
import os
import pty
master, slave = pty.openpty()
print(os.ttyname(slave))
print(os.ttyname(master))
I...
Tamlyn
Votes: 0
Answers: 1