Skip to content

Releases: lionkor/commandline

v2.5.0

03 Feb 20:09
3951e55
Compare
Choose a tag to compare
v2.5.0 Pre-release
Pre-release

What's Changed

  • Add option to remove (common) ansi escape codes from on_write by @lionkor in #49

Full Changelog: v2.4.2...v2.5.0

v2.4.2

23 Jan 18:19
Compare
Choose a tag to compare

This fixes an issue where redirecting the stdin or stdout on Windows causes the library to not use the correct backend.

What's Changed

  • Make windows stdin and stdout buffered depending on _isatty() by @lionkor in #46

Full Changelog: v2.4.1...v2.5.0

v2.4.1 Hotfix

28 Dec 20:26
b2a2973
Compare
Choose a tag to compare

What's Changed

  • fixed not calling on_write or on_command with the BufferedBackend
  • removed is_interactive() usages from InteractiveBackend (closes #38) by @aybeedee in #41

New Contributors

Full Changelog: v2.4.0...v2.4.1

v2.4.0

14 Oct 00:31
5ee6d9b
Compare
Choose a tag to compare
commandline_scroll_demo.webm

Scrolling!

What's Changed

Full Changelog: v2.3.0...v2.4.0

v2.3.0

13 Oct 20:07
e85b477
Compare
Choose a tag to compare

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

28 Apr 13:01
a409127
Compare
Choose a tag to compare

Plenty of small fixes and refactoring :)

What's Changed

New Contributors

Full Changelog: v2.1.2...v2.2.0

v2.1.2 - hotfix for CTest

20 Dec 00:42
88f7d0e
Compare
Choose a tag to compare
  • Fixes misuse of the target name test - now, the example application is called commandline_test.

v2.1.1

27 Sep 21:51
470cf2d
Compare
Choose a tag to compare

Fixes failing build on alpine:edge.

Full Changelog: v2.1.0...v2.1.1

v2.1.0

27 Sep 13:44
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0

23 Mar 11:04
01434c1
Compare
Choose a tag to compare

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() in on_autocomplete

Full Changelog: v1.2.0...v2.0.0