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.
- Host: GitHub
- URL: https://github.com/wx257osn2/linse
- Owner: wx257osn2
- License: bsd-3-clause
- Created: 2018-10-13T18:05:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-13T17:01:44.000Z (over 5 years ago)
- Last Synced: 2025-01-14T12:16:40.421Z (over 1 year ago)
- Topics: cpp, cpp17, header-only, linenoise, readline
- Language: C++
- Homepage:
- Size: 43.9 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)