On Fri, Apr 29, 2011 at 10:18 PM, Johann Glaser <johann.gla...@gmx.at> wrote: > Hi! > > I want to equip a program with a command line and therefore want a > powerful and user-friendly input prompt. Currently I use > ReadLn(CmdLine); > which is not as user-friendly as desired. :-) > > The usual answer for this question is libreadline. I already worked with > it (in plain C) but before I do a header translation for FreePascal I > wanted to ask you for your opinion if there is a better alternative or > anybody already has a header translation or even programmer-friendly > wrapper for the history and auto-completion stuff.
linenoise[1] and editline[2] are alternatives. Don't know if there are pascal bindings to those. [1]: https://github.com/antirez/linenoise [2]: http://www.thrysoee.dk/editline/ -- Programming is difficult business. It should never be undertaken in ignorance. --Douglas Crockford, "Javascript: The Good Parts" _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal