tags:

views:

139

answers:

2

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..

+2  A: 

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.

anon
Thanx Neil, I will look at it.
Bo Jensen
+3  A: 

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

cjg