A small self-contained alternative to readline and libedit
Browse cluster: SQL databases and distributed systems →Linenoise is a minimal line editing library designed as a lightweight alternative to readline and libedit for command-line utilities. The project addresses the problem domain of terminal interaction and command-line interface development, tackling the bloat of traditional line editing libraries which can exceed 20,000 lines of code. Written in C and consisting of approximately 1,600 lines of BSD-licensed source code, Linenoise provides single and multi-line editing modes, history handling, completion, hints, UTF-8 support, and bracketed paste support while using only basic VT100 escape sequences for broad terminal compatibility. The library was created by antirez and is used in projects including Redis, MongoDB, and Android, making it suitable for both small utilities and larger programs seeking a zero-configuration alternative to heavier libraries.