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..
NetBSD has a Readline replacement library called libedit, see http://www.thrysoee.dk/editline/.
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.
精彩评论