An open API service indexing awesome lists of open source software.

https://github.com/wx257osn2/linse

BSD licensed header-only C++17 readline library that supports UTF-8 and Windows.
https://github.com/wx257osn2/linse

cpp cpp17 header-only linenoise readline

Last synced: over 1 year ago
JSON representation

BSD licensed header-only C++17 readline library that supports UTF-8 and Windows.

Awesome Lists containing this project

README

          

# Linse

Linse is a header-only readline library for C++17.

## Origin

Linse is a forked project of Linenoise Next Generation(linenoise-ng, [arangodb/linenoise-ng](https://github.com/arangodb/linenoise-ng)).
linenoise-ng is based on [antirez/linenoise](https://github.com/antirez/linenoise).

## Features

Linse is based on linenoise-ng, so it also has the features below:

* single-line and multi-line editing mode with the usual key bindings implemented
* history handling
* completion
* BSD license source code
* Only uses a subset of VT100 escapes (ANSI.SYS compatible)
* UTF8 aware
* support for Linux ~~, MacOS~~ and Windows
* Linse may be worked on MacOS, but I don't check it because I have no Mac.

It is very important point that **Linse doesn't have linenoise-compatible pure-C interface**.
It means that you can't replace linenoise or linenoise-ng on your code to Linse without
changing code.

## Requirements

You need C++17-enabled compiler to use this library.

## Usage
see `example/example.cpp`

## License
3-clause BSD license ((C) I)