Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. replxx

replxx

NOASSERTIONC++

A BSD-licensed readline and libedit replacement with UTF-8 support, syntax highlighting, hints, and cross-platform compatibility.

GitHubGitHub
754 stars126 forks0 contributors

What is replxx?

Replxx is a BSD-licensed drop-in replacement for GNU readline and libedit that provides advanced line-editing features for command-line applications. It solves the licensing limitations of GPL-licensed readline while adding modern features like UTF-8 support and syntax highlighting. The library is designed to work across Linux, Windows, and macOS with minimal configuration.

Target Audience

C/C++ developers building command-line tools, REPLs, or interactive terminal applications that require sophisticated line editing. It's particularly valuable for projects that cannot use GPL-licensed readline due to licensing restrictions.

Value Proposition

Developers choose Replxx because it offers permissive BSD licensing while providing comparable functionality to readline, plus additional features like syntax highlighting and better UTF-8 support. Its zero-configuration approach and cross-platform compatibility make it an easy drop-in solution.

Overview

A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed.

Use Cases

Best For

  • Building proprietary command-line tools that need readline-like functionality
  • Creating cross-platform REPLs with syntax highlighting
  • Adding advanced line editing to embedded systems applications
  • Developing terminal applications requiring UTF-8 internationalization
  • Replacing GPL-licensed readline in BSD/Apache licensed projects
  • Implementing interactive debuggers or shells with hint systems

Not Ideal For

  • Projects that rely heavily on GNU readline's extensive plugin ecosystem or existing bash/readline scripts
  • Applications requiring graphical user interface (GUI) integration or web-based terminal emulators
  • Environments with extreme binary size constraints where even minimal library overhead is unacceptable
  • Teams needing extensive pre-built documentation or community support for niche use cases

Pros & Cons

Pros

Permissive BSD License

Allows use in proprietary and open-source projects without GPL restrictions, as emphasized in the project description for Apache2 or BSD licensed programs.

Cross-Platform Compatibility

Works on Linux, Windows, and macOS consoles with tested support for various terminals, ensuring broad usability for command-line applications.

Advanced Editing Features

Includes syntax highlighting and smart hints, providing real-time color coding and contextual suggestions beyond basic line editing.

Zero-Configuration Setup

Designed as a drop-in replacement for readline/libedit with no external dependencies, following a zero-configuration philosophy for easy integration.

Cons

Limited Ecosystem Support

Has a smaller community and fewer third-party extensions compared to GNU readline, which may limit advanced customization or bug fixes for edge cases.

Complex Windows Build

Requires CMake and Visual Studio for compilation, as shown in the build instructions, which can be more involved than package manager installations on other platforms.

Sparse Documentation

The README covers basics but lacks detailed API references or tutorials for advanced features like custom hint implementations, potentially increasing integration time.

Open Source Alternative To

replxx is an open-source alternative to the following products:

l
libedit

libedit is a command line editing library that provides line editing and history capabilities for interactive programs, similar to GNU Readline.

G
GNU Readline

GNU Readline is a library for command-line interfaces that provides line editing, history, and tab completion features for interactive programs.

Frequently Asked Questions

Quick Stats

Stars754
Forks126
Contributors0
Open Issues22
Last commit2 years ago
CreatedSince 2017

Tags

#readline#syntax-highlighting#terminal#multiplatform#c-plus-plus#ansi#line-editing#cross-platform#bsd-licensed#command-line#utf-8

Built With

C
C++11
C
CMake

Included in

C/C++70.6k
Auto-fetched 1 day ago

Related Projects

FTXUIFTXUI

:computer: C++ Functional Terminal User Interface. :heart:

Stars10,168
Forks589
Last commit6 days ago
cxxoptscxxopts

Lightweight C++ command line option parser

Stars4,769
Forks641
Last commit3 days ago
CLI11CLI11

CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.

Stars4,295
Forks446
Last commit6 days ago
imtuiimtui

ImTui: Immediate Mode Text-based User Interface C++ Library

Stars3,577
Forks155
Last commit7 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub