Crate readline_sys [] [src]

Only gets added if the OS is Linux or Mac.

The build.rs automatically links to the correct library (libreadline on Linux, libedit on Mac OS X)

NOTE: to get a *const c_char from &str -> s.to_c_str_unchecked().as_ptr()

Functions

add_history

Allows a person to press the up arrow, getting their history

readline

Reads a line from the command line