Module rurtle::readline
[−]
[src]
Core readline functionality
This module is just a wrapper for a small FFI interface to the C readline library.
This module is tailored to the needs of the Rurtle CLI and not intended as a general readline-rust wrapper.
Windows support
Note that readline is not available on Windows. readline
will still work
with less awesomeness though, and add_history
is just a stub.
This module will automatically select the right readline version for the target os.
Functions
add_history |
Add the given line to the readline history so the user can navigate back to it. |
readline |
Display the given prompt and return the input line. If readline encounters
an EOF, |