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.n...@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to