Bo Jensen
Bo Jensen

Reputation: 638

Simple alternative to GNU Readline library not GPL

I love the GNU readline library, but since it is under a GPL license, I can not use it for commercial software. Do you know alternatives ? I only need the commandline history and auto completion (of customer keywords and files) features. I found this link :

http://github.com/antirez/linenoise

which seem to be a good starting point, but does not have auto completion.

Any suggestions, surely this must be a common task for people building interactive shell commands.

Update :

Upps forgot one important detail it should also run on windows..

Upvotes: 16

Views: 6903

Answers (2)

cjg
cjg

Reputation: 2757

NetBSD has a Readline replacement library called libedit, see http://www.thrysoee.dk/editline/.

Upvotes: 8

anon
anon

Reputation:

I haven't used it, but this http://www.astro.caltech.edu/~mcs/tecla/index.html appears to be a getline replacement, with a non-restrictive license.

Upvotes: 6

Related Questions