Linenoise is described as '"A minimal, zero-config, BSD licensed, readline replacement used in Redis, MongoDB, and Android."'. There are three alternatives to Linenoise for Linux, BSD, Mac and Windows. The best alternative is GNU readline, which is both free and Open Source. Other great apps like Linenoise are libedit (Free, Open Source) and replxx (Free, Open Source).
This is an autotool- and libtoolized port of the NetBSD Editline library (libedit). This Berkeley-style licensed command line editor library provides generic line editing, history, and tokenization functions, similar to those found in GNU Readline.