Skip to main content
3 votes
1 answer
67 views

I'm attempting to write tests using Pytest for an application that, among other things, checks to see if its standard input is connected to a terminal and changes its behavior if so. The application ...
ArrayBolt3's user avatar
1 vote
0 answers
222 views

I am trying to spawn a process so that I can do the following: Send text to its standard input and specify EOF by closing the stdin pipe. Connect the process' stdout and stderr to a TTY device so ...
Udeshya D.'s user avatar
1 vote
1 answer
114 views

I was experimenting with creack/pty while learning about pseudo terminals. I spawned grep and hooked it up with a pseudo terminal device as follows: package main import ( "fmt" &...
Udeshya D.'s user avatar
2 votes
1 answer
131 views

Background Tauri v2 desktop app (macOS, Apple Silicon) with React + xterm.js frontend. Rust backend spawns local CLI “agents” (Codex / Gemini) in a PTY using expectrl 0.7.1, forwards output to the ...
shuyin2's user avatar
  • 11
2 votes
1 answer
170 views

Goal: In Python have a parent terminal start a program in a child pseudo-terminal (PTY), see its outputs and provide its inputs. At any given time, the parent terminal should be able to query what's ...
GenTel's user avatar
  • 1,580
1 vote
0 answers
269 views

I'm encountering an error while trying to install the node-pty package using npm. I followed the standard installation process, but I ran into an issue during the build phase that involves node-gyp. ...
user30065419's user avatar
1 vote
1 answer
122 views

I am writing a simple bastion service which will log input/output of a ssh session. The ssh connection part looks like: func connect(user, host string, logger sessionLogger) error { cmd := exec....
xrfang's user avatar
  • 2,373
0 votes
0 answers
27 views

So, I have some code for a flask_socketio virtual console. I can see the output, but when to send in a command, recv isn't called. Code: @socketio.on('connect') def test_connect(auth: str): def ...
Xandaaah's user avatar
1 vote
0 answers
61 views

I’m working on a Linux application where I interact with a pseudo-terminal (PTY). Specifically, I’ve implemented the following: I create a PTY slave and monitor writes and reads on the PTY master ...
joaopeixoto13's user avatar
0 votes
0 answers
935 views

In (Debian) Linux I'd like to start an interactive Bash session and then pass it commands. With my attempt it seems Bash isn't behaving as it would in a real terminal and abruptly stops during ...
suuudooo's user avatar
5 votes
1 answer
279 views

Consider the following C program, named weird.c (because the thing it is doing makes no sense): #include <inttypes.h> #include <stdint.h> #include <stdio.h> #include <unistd.h> ...
Simon Kissane's user avatar
1 vote
1 answer
141 views

I have a shell, where I switch to another user with su -l anotheruser, this mostly works But when there is no pty allocated to su, it errors out with: su: must be run from a terminal So, I tried to ...
Ani's user avatar
  • 1,556
1 vote
0 answers
64 views

I can see what's happening in the real terminal with "OK" in the end of the response. But the read method does not return the last two lines. @staticmethod def communicate(...
sonus89's user avatar
  • 11
1 vote
1 answer
237 views

Background: I'm trying to create a pseudo-terminal using only the tools that come with "Git for windows" so please don't tell me "just install tool XYZ" if XYZ requires extra ...
Mark VY's user avatar
  • 1,741
0 votes
0 answers
89 views

The pseudo console in question is created using winapi::um::consoleapi::CreatePseudoConsole I've tried determining if its waiting for input by scraping the output. But.. that is unreliable, to say the ...
Bigchungusonketamime's user avatar

15 30 50 per page
1
2 3 4 5
30