[fpc-pascal] Redirecting input to a child process
Anton Shepelev
anton.txt at gmail.com
Sun May 8 22:26:02 CEST 2011
Ludo Brands:
> > Connected with this remark, is there a way to get the
> > underlying StdIn handle in a FreePascal program, so as
> > to read from it per-character, or any other way using
> > the OS's routines?
>
> The handles are mProcess.Input.Handle and mProcess.Out-
> put.Handle
I meant the program's own handles. Like instead of doing:
Read(input, c);
read directly from a handle:
Windows.ReadFile(inputHandle, ...);
Anton
More information about the fpc-pascal
mailing list