Comment Comment by thomasballinger Here's another implementation of what's described above, it forks on each invocation of readline to provide undo for interactive interpreters. https://github.com/thomasballinger/rlundo parent thomasballinger 5 years ago