Vcpkg: Add readline or editline

Created on 12 Jun 2017  路  9Comments  路  Source: microsoft/vcpkg

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.

new-port

All 9 comments

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.

https://github.com/yhirose/cpp-linenoise

It has some Unicode related code but as far as I understand ReadConsoleInput doesn't work well for some codepoints.

https://github.com/arangodb/linenoise-ng

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.

3504 tries to add readline, so if you're still looking for readline give that PR a try ;-)

@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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tzbo picture tzbo  路  3Comments

spindensity picture spindensity  路  3Comments

oahzuw picture oahzuw  路  3Comments

F0I0l0I0P picture F0I0l0I0P  路  3Comments

angelmixu picture angelmixu  路  3Comments