No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
readme.md
test.py

readme.md

Undo via rerunning a cli process with old interaction

This is an example script to accompany the article at ballingt.com/interpreter-undo.

If you're interested in making something like this for real, you may find the terminal rewriting code in rlundo useful.

written in Python 2

requires pexpect, pip install pexpect

usage:

python test.py python

python test.py irb

python test.py ghci

etc.