linenoise
Wrapper for linenoise, a free, self-contained alternative to GNU readline.
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | BSD |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install linenoise
choosenim install linenoise
git clone https://github.com/fallingduck/linenoise-nim
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| linenoise | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/fallingduck/linenoise-nim |
|---|---|
| Homepage | https://github.com/fallingduck/linenoise-nim |
| Registry Source | nimble_official |
README
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.