Repline: The Prebaked Multiline Editor
Repline is an easy-to-use, fairly sensible multiline terminal editor meant specifically for REPL-ifying existing Rust projects. It aims to provide a simple API and fairly intuitive™ keybinds, which will probably work in some terminals.
Repline is a component of the Conlang project.
Integrating Repline into your project
The easiest, most intuitive way to integrate Repline into your project is with
the prebaked interface. This interface provides user input to a passed-in
FnMut lambda as a string each time the user presses the enter key at the end
of the last line.
use ;
Advanced Repline integration
More complicated projects may have more complicated needs. To service these, the repline interface is exposed for direct consumption. This can be used if: