We've walked through the code of a fairly rich command line editor that can easily be modified for any application that requires command line input from the user.
Specifically, this was written for CircuitScheme, which now has a decent REPL. There are always more ways to improve it. The next will probably be to keep a history of result values and the ability to pull them into the line being edited the same way input history works now.
Page last edited March 08, 2024
Text editor powered by tinymce.