[fpc-pascal] Redirecting input to a child process

Ludo Brands ludo.brands at free.fr
Sun May 8 19:50:35 CEST 2011


The handles are mProcess.Input.Handle and mProcess.Output.Handle

Ludo

-----Message d'origine-----
De : fpc-pascal-bounces at lists.freepascal.org
[mailto:fpc-pascal-bounces at lists.freepascal.org] De la part de Anton
Shepelev
Envoyé : dimanche 8 mai 2011 19:27
À : FPC-Pascal users discussions
Objet : Re: RE : [fpc-pascal] Redirecting input to a child process


Ludo Brands:

> If  you  run  'more'  in  a  cmd window you'll notice that 'more' 
> echoes the input but only sends to  stdout  when  a
> return   is  entered.  I  modified  the  program  to  send
> 'Anton'#10 and the  program  reads  back  'Anton'#10  from stdout.

Connected with this remark, is there a way to get the under- lying StdIn
handle in a FreePascal program, so  as  to  read from  it per-character, or
any other way using the OS's rou- tines?

Anton
_______________________________________________
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