Summary

I add tcl/expect to Pen.el and provide a DSL to automate the terminal using expect.

The plan is to automate tmuxified and codexified terminals using expect, generated expectations and automated generated input (send).

code
http://github.com/semiosis/pen.el/blob/master/scripts/pen-x

Demo

  • pet starts emacs’ term inside the docker container
  • pen-x is the expect DSL

The following command runs the expect DSL inside of emacs term. It wraps bash and then automates some input.

1
pet pen-x -sh bash -e mele -s "echo hi" -c m -i