Releases: lionkor/commandline
v2.5.0
v2.4.2
v2.4.1 Hotfix
v2.4.0
v2.3.0
Blocking I/O as an option for piping in & out!
When redirecting stdin
or stdout
(to something that isn't a TTY), the input now changes from the interactive readline-like interface to a simple buffered line-based interface. This means that, in this case, history, autocomplete, etc. don't work. This is meant to be used to hook other tools into the functionality of the user of this library, without seizing to use this library.
TLDR: Redirecting stdin
now works as expected.
What's Changed
- Mention vcpkg port in readme by @Pospelove in #33
- Implement backends support, !isatty() causes buffered i/o by @lionkor in #36
Full Changelog: v2.2.0...v2.3.0
v2.2.0
Plenty of small fixes and refactoring :)
What's Changed
- cleanup and fix warnings by @huangqinjin in #28
- move reset_terminal() to dtor (fixes #30) by @lionkor in #31
- Reorganize platform dependent code by @lionkor in #32
New Contributors
- @huangqinjin made their first contribution in #28
Full Changelog: v2.1.2...v2.2.0
v2.1.2 - hotfix for CTest
- Fixes misuse of the target name
test
- now, the example application is calledcommandline_test
.
v2.1.1
Fixes failing build on alpine:edge.
Full Changelog: v2.1.0...v2.1.1
v2.1.0
What's Changed
- User-defined callback for logging by @Hammersamatom in #21
- remove "why not support autocomplete" from readme by @Pospelove in #22
- define VS_STARTUP_PROJECT in cmake by @Pospelove in #23
- macOS support by @tsao-chi in #24
- github action for mac by @tsao-chi in #25
New Contributors
- @Hammersamatom made their first contribution in #21
- @Pospelove made their first contribution in #22
- @tsao-chi made their first contribution in #24
Full Changelog: v2.0.0...v2.1.0
v2.0.0
Thanks
Thanks to @20dka for making these changes and continuously putting so much effort in to improve this project!
Also thanks to Reddit's r/cpp who provided plenty of feedback, excitement, and motivation to make this all happen!
What's Changed
- Add DEL key (Delete) functionality
- Add Shift+Tab to reverse-cycle through autocompletion suggestions
- Add escape key (windows) or backspace (windows and Linux) to cancel the autocompletion suggestion
- Changed
on_autocomplete
signature (incompatible with 1.x, hence major version increase) to add cursor position at the time of TAB key press - Fix printing of control characters if accessing empty history (via up- and down-arrow keys)
- Fix deadlock when attempting to
.write()
inon_autocomplete
Full Changelog: v1.2.0...v2.0.0