Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Jonas Maebe
On 15 Jan 2013, at 13:48, Rainer Stratmann wrote: This is one thing. Another thing are the error messages from freepascal which behave the same then. And other output messages (for example dhcp service programs). Use TProcess to execute external programs and capture their output. You can

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Michael Van Canneyt
On Tue, 15 Jan 2013, Rainer Stratmann wrote: Am Tuesday 15 January 2013 13:41:19 schrieb Mark Morgan Lloyd: Rainer Stratmann wrote: 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 wit

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Rainer Stratmann
Am Tuesday 15 January 2013 13:41:19 schrieb Mark Morgan Lloyd: > Rainer Stratmann wrote: > >> 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? > > In the gener

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Michael Van Canneyt
On Tue, 15 Jan 2013, Rainer Stratmann wrote: 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

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Mark Morgan Lloyd
Rainer Stratmann wrote: 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? In the general case, that's going to be terminal-specific. If you only want stdout (and/or s

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Rainer Stratmann
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' ); >

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread 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 o

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Rainer Stratmann
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 > >

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Mark Morgan Lloyd
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? You've n

Re: [fpc-pascal] fpsystem output

2013-01-14 Thread 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