PyTermControl
Python only version of https://github.com/axiros/termcontrol
Starts a command within a pty from a controlling process, which reads "keystrokes" from a fifo and forwards into the child. User input may be forwarded to another fifo, instead of sending it into the child process' pty.
This way any terminal process waiting for user input can be controlled from outside.
USAGE: with_termcontrol [Params] COMMAND
- The fifo filename (
fn_fifo) is available as$STDIN_FIFOwithin the child. All data on this fifo will be sent into the pty. - If fn_fifo is set to 'auto' then we'll create a tempfile fifo
- If you configure a forward fifo (
fn_user), then all user input will be forwarded to it, instead of sending into the pty - The program will block(!) until a reader is attached to that user fifo
fn_usersimply set to true will result in its filename set to$STDIN_FIFO+ '.user' (and exported as$USER_INPUT_FIFO)- Fifos will be created only if they don't exist at process start
- Fifos will be unlinked at exit only if they where created by us
Params: --fn_user[=False] --fn_fifo[=auto]
Metadata
Release files for pytermcontrol 2022.9.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytermcontrol-2022.9.19.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytermcontrol-2022.9.19-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 kB
Release files / pytermcontrol-2022.9.19.tar.gz
| Download URL | pytermcontrol-2022.9.19.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9245481f78d41617f3446af5cd6431a2e83c52e188df0ab9e5e2d5ef47681927
|
|
BLAKE2b-256 checksum How to use checksums |
04160e8f90c14cb7037a441811f2423e35add0dc4ce2dbc38b9cbe996fecd4cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Linux/5.16.15-101.fc34.x86_64
|
Release files / pytermcontrol-2022.9.19-py3-none-any.whl
| Download URL | pytermcontrol-2022.9.19-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5aa94f36d7be970712acf35b835e5d00f42e5b05b5b44a03b9067e766ddca35
|
|
BLAKE2b-256 checksum How to use checksums |
072570f3a89916ee8f47b2e31147b32afa99def97232356fbb2f50c6ef6203d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Linux/5.16.15-101.fc34.x86_64
|