Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

AmokHuginnsson/replxx

Repository files navigation

demo

Build Status

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

Origin

This replxx implementation is based on the work byArangoDB Team andSalvatore Sanfilippo and10gen Inc. The goal is to create a zero-config, BSDlicensed, readline replacement usable in Apache2 or BSD licensedprograms.

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 andsome recent version of CMake.

Build instructions

*nix

  1. Create a build directory
mkdir -p build&&cd build
  1. Build the library
cmake -DCMAKE_BUILD_TYPE=Release ..&& make
  1. Install the library at the default target location
sudo make install

The default installation location can be adjusted by setting theDESTDIRvariable when invokingmake install:

make DESTDIR=/tmp install

Windows

  1. Create a build directory in MS-DOS command prompt
md buildcd build
  1. Generate Visual Studio solution file with cmake
  • 32 bit:
cmake -G"Visual Studio 12 2013" -DCMAKE_BUILD_TYPE=Release ..
  • 64 bit:
cmake -G"Visual Studio 12 2013 Win64" -DCMAKE_BUILD_TYPE=Release ..
  1. Open the generated filereplxx.sln in thebuild 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!

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp