[fpc-pascal]redirecting prog under Linux

Sebastian G√ľnther sguenther at gmx.de
Sat Mar 30 14:03:34 CET 2002


Andreas K. Foerster wrote:
> Hello,
> 
> I start a program like this:
[...]
> 
> How is it possible to run it on a different virtual terminal? 
> Say /dev/tty2 for example.

I think you just have to open /dev/tty2 and pass the file handle as 
StdOut and StdErr to the newly spawned process. (use AssignStream 
instead of Execl)

- Sebastian





More information about the fpc-pascal mailing list