jfjr@mitre-bedford.arpa (10/07/87)
I think I just answered this. I used a patch I got from compuserv last year to modify Turbo Pascal so that it would read commands from standard input. The improvements I made were to make the compiler exit on error rather than go to the editor. I don't have the patches anymore. I lost my copies. If you are REALLY desparate I can get them or point you where to get them (the ones I did which include the original) - the original is on compuserv). Turbo Pascal uses int 16 to read the keyboard. What you want is to replace the int 16 calls with int 21 calls. The patch I used allowed me to call Turbo Pascal from a batch file. There was no modification of command parsing in the patchso since Turbo does not wait for a carriage return to read the character the commands to compile the program in the batch file area concatenation of the commands you would normally enter from the keyboard. I haven't used turbo in a while so this is not exact but meant to give the flavor of what the command file would contain .REM YNNsomeprog.pasQ .REM The YNN and Q at the end are answers the questions the compiler asks If this is what you want and all that you want then The source of this patch is Compuserve and I got it in the spring of '86 Jerry Freedman, Jr