[fpc-pascal] fpsystem output

Rainer Stratmann RainerStratmann at t-online.de
Tue Jan 15 13:31:47 CET 2013


Am Tuesday 15 January 2013 13:25:08 schrieb Michael Van Canneyt:
> On Tue, 15 Jan 2013, Rainer Stratmann wrote:
> > Am Tuesday 15 January 2013 08:57:58 schrieb Michael Van Canneyt:
> >> On Mon, 14 Jan 2013, Rainer Stratmann wrote:
> >>> When calling for example fpsystem( 'cat /proc/partitions' );
> >>> the lines are not beginning at the 1st character of the next line
> >>>
> >>> Instead of
> >>> Line1
> >>> Line2
> >>> Line3
> >>> like in the Linux shell
> >>>
> >>> The output is:
> >>> Line1
> >>>      Line2
> >>>          Line3
> >>>
> >>> and so on
> >>>
> >>> What is the reason?
> >>
> >> Here the output looks OK when executing as-is.
> >>
> >> But if you are using the crt unit, that may mess up the terminal.
> >> I added crt, and then the output was indeed indented.
> >
> > I also use crt.
> > Is it possible to change the bevahiour?
>
> No.
> in order to do it's magic, CRT must control the terminal.

Are there alternative ways to write something on the screen and to clear the 
screen?
For example with unit system?

> Michael.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal





More information about the fpc-pascal mailing list