No description
Find a file
2015-05-22 17:46:15 -07:00
.gitignore Initial commit 2015-05-22 17:46:15 -07:00
clinenoise.c Initial commit 2015-05-22 17:46:15 -07:00
clinenoise.h Initial commit 2015-05-22 17:46:15 -07:00
LICENSE Initial commit 2015-05-22 17:46:15 -07:00
linenoise.nim Initial commit 2015-05-22 17:46:15 -07:00
linenoise.nimble Initial commit 2015-05-22 17:46:15 -07:00
README.md Initial commit 2015-05-22 17:46:15 -07:00

Linenoise

Linenoise is a minimalistic alternative to the GNU readline library. The original project can be found here. The library itself is BSD licensed, so you are actually free to use it in any project you want, unlike with readline.

This is a wrapping for linenoise in the Nim language. You can install it with

$ nimble install linenoise

Quick Reference

Check in linenoise.nim (a wrapping of clinenoise.h) for exposed types and procs. Functionally, everything should be equivalent to using the C version.

The linenoise prefix has been removed from the exposed types and procs, so linenoiseHistoryAdd in the C version becomes historyAdd in the Nim version.

However, the linenoise function in C becomes linenoisePrompt in Nim.