linenoiseHistorySetMaxLen() was broken and never tested. Fixed.
linenosePrompt() -> linenoiseEdit().
Example app improved.
Merge branch 'master' of github.com:msteveb/linenoise