~mna/sendkeys

Simulate sending user input in a terminal.
add github mirror
initial commit

clone

read-only
https://git.sr.ht/~mna/sendkeys
read/write
git@git.sr.ht:~mna/sendkeys

You can also use your local clone with git send-email.

sendkeys

Package sendkeys provides functions to simulate user input in the terminal by sending keys to a TTY. Useful especially to test terminal programs that run in raw mode. See the package documentation for details, API reference and usage example (alternatively, on pkg.go.dev).

It only works on Unix-like systems. Note that programs using this will require sudo-like privileges.

License

The BSD 3-Clause license.