> 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.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to