[fpc-pascal] Readline substitute
Krishna
v.krishnakumar at gmail.com
Sat Dec 10 07:43:26 CET 2011
On Fri, Apr 29, 2011 at 10:18 PM, Johann Glaser <Johann.Glaser at 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"
More information about the fpc-pascal
mailing list