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).
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.
The readln() function has nothing to do with libreadline.
The problem you are seeing is
On Wed, 1 Sep 2010, Dusan Halicky wrote:
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.
The readln() function has nothing to do with
If you run the program twice, you'll see that you can scroll back even to
what you typed in the first run of the program; This is clear proof that it
is not the program itself which does that.
Ok. This somehow convinced me. Can I achieve the same thing in bash?
On Wed, 1 Sep 2010, Dusan Halicky wrote:
If you run the program twice, you'll see that you can scroll back even to
what you typed in the first run of the program; This is clear proof that it
is not the program itself which does that.
Ok. This somehow convinced me. Can I achieve the same
On Wed, 1 Sep 2010 21:17:04 +0200, Dusan Halicky wrote about Re:
[fpc-pascal] ReadLine history works in windows/cmd.exe but not in
bash/linux:
If you run the program twice, you'll see that you can scroll back
even to what you typed in the first run of the program; This is
clear proof