Duncan Bellamy 43b6f8aeb9 [Fix] fix static building | 2 years ago | |
---|---|---|
.. | ||
include | 2 years ago | |
src | 2 years ago | |
CMakeLists.txt | 2 years ago | |
LICENSE.md | 4 years ago | |
README.md | 4 years ago |
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.
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.
It deviates from Salvatore’s original goal to have a minimal readline replacement for the sake of supporting UTF8 and Windows. It deviates from 10gen Inc.’s goal to create a C++ interface to linenoise. This library uses C++ internally, but to the user it provides a pure C interface that is compatible with the original linenoise API. C interface.
To build this library, you will need a C++11-enabled compiler and some recent version of CMake.
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && make
sudo make install
The default installation location can be adjusted by setting the DESTDIR
variable when invoking make install
:
make DESTDIR=/tmp install
md build
cd build
bash
cmake -G "Visual Studio 12 2013" -DCMAKE_BUILD_TYPE=Release ..`
bash
`cmake -G "Visual Studio 12 2013 Win64" -DCMAKE_BUILD_TYPE=Release ..`
replxx.sln
in the build
subdirectory with Visual Studio.Please test it everywhere you can and report back!
Patches should be provided in the respect of linenoise sensibility for small and easy to understand code that and the license restrictions. Extensions must be submitted under a BSD license-style. A contributor license is required for contributions.