ncurses-rs | A low-level ncurses wrapper for Rust
kandi X-RAY | ncurses-rs Summary
kandi X-RAY | ncurses-rs Summary
A low-level ncurses wrapper for Rust
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ncurses-rs
ncurses-rs Key Features
ncurses-rs Examples and Code Snippets
Community Discussions
Trending Discussions on ncurses-rs
QUESTION
I'm looking for a way to mimick a terminal for some automated testing: i.e. start a process and then interact with it via sending data to stdin and reading from stdout. E.g. sending some lines of input to stdin including ctrl-c
and ctrl-\
which should result in sending signals to the process.
Using std::process::Commannd
I'm able to send input to e.g. cat
and I'm also seeing its output on stdout, but sending ctrl-c
(as I understand that is 3
) does not cause SIGINT
sent to the shell. E.g. this program should terminate:
ANSWER
Answered 2017-May-04 at 20:20Try adding -t option TWICE to force pseudo-tty allocation. I.e.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ncurses-rs
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page