[fpc-pascal] CTRL-Break and asynchronous exec
Jürgen Hestermann
juergen.hestermann at gmx.de
Fri Apr 10 18:10:59 CEST 2009
> Marco van de Voort schrieb:
> However in such cases
> it is easiest to look how FPC's biggest console app (the textmode IDE) does
> it.
Thanks Marco for the quick answer. I tried to find where the IDE does
the keyboard input but without success. Where in these 97 files could it
be? It seems that it doesn't use CRT/READKEY anyway. So is it a problem
of the CRT unit?
> Do not use the dos.exec function. It has argument and path length problems
> (due to shortstrings), use the executeprocess function(s) instead. They are
> in sysutils.
Maybe someone can add this hint to the manual in the description of the
EXEC function when it is changed anyway some day. I always wondered
whether the DOS unit can still be used or whether it's just there for
compatibility reasons.
Jürgen Hestermann.
More information about the fpc-pascal
mailing list