[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 23:10:52 CEST 2010
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 that it is not the program itself which does that.
>
> Ok. This somehow convinced me. Can I achieve the same thing in bash?
Not bash itself, but you can call readline() explicitly and achieve the
desired effect.
Remember that the program and the shell are largely independent under
all UNIX systems, including Linux. So, if you want the scrollback
capabilities you need to use the appropriate API.
--
Regards,
Dave [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.noon at ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
More information about the fpc-pascal
mailing list