michael from freepascal.org gave the following reply.





> This is normal.
> The crt unit completely disables regular input.
> There is nothing we can do about this, that is why the crt unit is made.






So from what I understand it interferes with the input/output handling of lua. Not just when reading input from a keyboard, but the output to the screen with print as well. and I havent tested it yet but I assume the same will hold for the file io routines as well.

I wanted to use the functions and procedures within the crt unit as lua cannot provide them (gotoxy, clrscr, window, etc...). But looks like i will have to code my own version with the needed functions and procedures.