[fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux

David W Noon david.w.noon at ntlworld.com
Wed Sep 1 20:26:38 CEST 2010


On Wed, 1 Sep 2010 19:30:07 +0200, Dusan Halicky wrote about
[fpc-pascal] ReadLine history works in windows/cmd.exe but not in
bash/linux:

> I compiled it in windows (FPC 2.4.0), run it in cmd.exe and I was
> surprised that history of commands is working out of the box (by
> pressing arrow UP).

That is standard behaviour for most modern shells.

> Can you help me to make readln history working on linux too?

The readln() function has nothing to do with libreadline.

The problem you are seeing is due to the shell you are using and the
key binding options you have assigned or defaulted to in the shell
and/or the terminal emulator. It has nothing to do with FPC.

Try:

man 1 bash

and see how you can set the options you need.
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.noon at ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100901/6c412358/attachment.sig>


More information about the fpc-pascal mailing list