Many command line tools depend its interactive editing on readline or libedit.
But such library is not ported to Visual C++ environment yet.
If either of readline or libedit is ported, it is helpful so much.
Anything that can more or less do as a drop-in replacement for readline would be lovely. Cutting down significantly on the more obscure readline features wouldn't matter ;) I'd be willing to contribute modestly to a bounty on this.
This one looks promising: http://mingweditline.sourceforge.net/
This one looks promising: http://mingweditline.sourceforge.net/
As far as I remember it doesn't work well on non ASCII environment because it uses ReadConsoleInput.
Here are two interesting projects, the later a header only lib:
https://github.com/arangodb/linenoise-ng
https://github.com/yhirose/cpp-linenoise
Linenoise is one of the most popular non-GPL readline replacements, but no 1:1 Windows port.
It has some Unicode related code but as far as I understand ReadConsoleInput doesn't work well for some codepoints.
I didn't know linenoise's development is so advaned. It uses ReadConsoleInputW and maybe works well. I'll check it further later.
I checked linenoise.
It looks good project if you want to make a tool which has readline functionality.
But it is not what I want, the drop-in replacement for readline.
@nurse did you try readline from #3504?
Also:
I checked linenoise.
Do you mean linenoise-ng?
Thanks 馃槃
@qmfrederik @claudiofantacci I tried #3504 and it works fine, thanks!