/playpty

Play script in pty

Primary LanguagePythonMIT LicenseMIT

playpty

This is a tool that reads from a file and simulates user input on tty

This is only tested in democtl

Release page

Install

python3 -m pip install playpty

Usage

python3 -m playpty /path/to/file.demo

Built-in command

These are the commands that will not be displayed with running

  • @pause wait press entry
  • @sleep [float] like sleep in shell
  • @typing-interval [float] change the typing interval(default 0.1)