Linenoise is an ultra-lightweight, self-contained C library that implements line editing (single and multi-line) for terminal applications, intended as a simpler alternative to the much larger GNU Readline or libedit libraries. The library is zero-config, meaning you just include the source file(s) and use it, without heavy dependencies or external configuration. It supports basic editing features: moving the cursor, inserting characters, handling history, tab-completion, and hints, plus a multiplexing mode where the prompt can be hidden/restored when asynchronous output appears. It works on most VT100/ANSI-compatible terminals, and is portable across Unix-like systems. The code is compact (around 850 lines excluding comments) and designed for minimal footprint embedding into other projects (like CLI tools) that need line editing but don’t want the complexity of linking large libraries.

Features

  • Minimal, single-file (or few files) C library for line editing in terminals
  • Support for single-line and multi-line editing with cursor movement and history recall
  • Built-in tab-completion and hint-display for suggestions during editing
  • Multiplexing mode allowing asynchronous output while preserving prompt integrity
  • Zero-configuration usage (just include the source, no external dependencies)
  • Very compact code footprint and permissive BSD license making it embeddable

Project Samples

Project Activity

See All Activity >

Categories

Database

License

BSD License

Follow Linenoise

Linenoise Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Linenoise!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

C

Related Categories

C Database Software

Registered

2025-11-25