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.
The BSD 3-Clause license.