☰ Menu
CLI Open source

replxx for Mac

replxx

Read Evaluate Print Loop ++

replxx — overview

Read Evaluate Print Loop ++

A small, portable GNU readline replacement for Linux, Windows and MacOS which is capable of handling UTF-8 characters. Unlike GNU readline, which is GPL, this library uses a BSD license and can be used in any kind of program.

Origin

This replxx implementation is based on the work by ArangoDB Team and Salvatore Sanfilippo and 10gen Inc. The goal is to create a zero-config, BSD licensed, readline replacement usable in Apache2 or BSD licensed programs.

Features

single-line and multi-line editing mode with the usual key bindings implemented history handling completion syntax highlighting hints BSD license source code Only uses a subset of VT100 escapes (ANSI.SYS compatible) UTF8 aware support for Linux, MacOS and Windows

Requirements

To build this library, you will need a C++11-enabled compiler and some recent version of CMake.

Build instructions

nix Create a build directory Build the library Install the library at the default target location

The default installation location can be adjusted by setting the DESTDIR variable when invoking make install:

Windows Create a build directory in MS-DOS command prompt Generate Visual Studio solution file with cmake

32 bit:

64 bit: Open the generated file replxx.sln in the build subdirectory with Visual Studio.

Tested with...

Linux text only console ($TERM = linux) Linux KDE terminal application ($TERM = xterm) Linux xterm ($TERM = xterm) Linux Buildroot ($TERM = vt100) Mac OS X iTerm ($TERM = xterm) Mac OS X default Terminal.app ($TERM = xterm) OpenBSD 4.5 through an OSX Terminal.app ($TERM = screen) IBM AIX 6.1 FreeBSD xterm ($TERM = xterm) ANSI.SYS Emacs comint mode ($TERM = dumb) Windows

Please test it everywhere you can and report back!

Details

Readline 和 libedit 替代品

How to install replxx

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

This project has no GitHub releases yet.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • Apple silicon · latest macOS
  • Apple silicon · macOS 26 Tahoe
  • Apple silicon · macOS 15 Sequoia
  • Apple silicon · macOS 14 Sonoma
  • Apple silicon · macOS 13 Ventura
  • Intel · macOS 14 Sonoma
  • Intel · macOS 13 Ventura
  • Linux · ARM64
  • Linux · x86_64

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
replxx0.0.4BSD-3-Clause AND Unicode-TOUCLI0
libreadline-javav0.8.4LGPL-2.1-or-laterCLI2
xcb-util-cursor0.1.6X11CLI3
with-readline0.1.1GPL-2.0-or-laterCLI3

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…