Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!ut-sally!ut-ngp!ayac071 From: ayac071@ut-ngp.UUCP Newsgroups: comp.sys.ibm.pc,comp.lang.pascal Subject: Re: HELP FOR TURBO BIOS CALLS NEEDED!! Message-ID: <5872@ut-ngp.UUCP> Date: Tue, 11-Aug-87 10:28:55 EDT Article-I.D.: ut-ngp.5872 Posted: Tue Aug 11 10:28:55 1987 Date-Received: Thu, 13-Aug-87 01:19:50 EDT References: <88@osupyr.UUCP> Reply-To: ayac071@ngp.UUCP Distribution: na Organization: UTexas Computation Center, Austin, Texas Lines: 28 Xref: utgpu comp.sys.ibm.pc:5785 comp.lang.pascal:220 In article <88@osupyr.UUCP> glazer@osupyr.UUCP (Jon Glazer) writes: >This is IBM-PC related of course... I assume your are running the IBM-PC specific version of Turbo Pascal, not the more generic MS-DOS version. >I am writing a program that I hope to be able to operate remotely. The >problem is that I would like to send output through the BIOS so that >when issuing the command CTTY COM1 (change console to com1) output goes >to correct device. DOS does this without any problem and so do programs such >as EDLIN. Could someone tell me how to write such a routine?? In the IBM version, Turbo Pascal sends its console i/o through the bios interface. It essentially bypasses DOS for nearly all activities, for the sake of speed. Unfortunately, bypassing DOS means bypassing the ability to re-direct input and output, such as that done by the CTTY command. If you have version 3.0 or higher, try using the compiler directives {$P1} {$G1} at the start of your code. This results in the compiler using the DOS system calls, instead of the bios, for console input/output. Then you should be able to redirect you i/o through the modem. If you are using the MS-DOS version of TP, you shouldn't have this problem, as that version uses the DOS interface by default. Bill Douglass ayac071@ngp.UUCP