readline wrapper for async stdin/stdout
consoline is GNU Readline with better support for asynchronous output.
This is recommended for the console interface for server programs that print messages to stdout while you're trying to type something on stdin. consoline ensures that your input line is uninterrupted by printing stdout above where you're typing the line of input.
consoline [cmd...]
NOTE: if you're running python with this program, be sure to use python -u
.
--no-completion
.-c
.--prompt='>>> '
NOTE: consoline options must precede the command to run.
sudo apt-get install libreadline-dev
make
You can use some of this functionality as a library.
See consoline.h for the API and make libconsoline.so
.