[fpc-pascal] ReadLine history works in windows/cmd.exe but not in bash/linux
dusan.halicky at gmail.com
Wed Sep 1 19:30:07 CEST 2010
I have simple console application:
var s : string;
while s <> 'q' do
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). I thought it is done automatically by libreadline
or something and that it will work on linux too. But the very same
application compiled in FPC 2.4.0 in linux does not have history
support. When I press arrow up, it only write ^[[A and nothing else. I
tested it in xterm, urxvt and virtual console. I have Debian 5.0 with
FPC from freepascal.org.
Can you help me to make readln history working on linux too?
More information about the fpc-pascal