progville.com
linenoise — a tiny readline replacement - Progville
Linenoise is a tiny (1K lines of code) C library for line editing in console programs, a replacement for readline or libedit, used in Redis and MongoDB.