5 ms·
Here's an idea that I like (so much that I wrote an implementation): use LD_PRELOAD to swap out readline with version that forks on each input. Kill the forked
by thomasballinger 9y ago
Here's an idea that I like (so much that I wrote an implementation): use LD_PRELOAD to swap out readline with version that forks on each input. Kill the forked child process and you have undo! https://github.com/thomasballinger/rlundo https://github.com/thomasballinger/rlundo
post: http://ballingt.com/interactive-interpreter-undo/#hacking-fork-on-command-into-interpreters http://ballingt.com/interactive-interpreter-undo/#hacking-fo...