thomas@mvac23.UUCP (Thomas Lapp) (08/23/89)
Apologies to all who go , "Gee, any Unix/C wizard knows that." I am writing a program which will raise DTR on the COM port (we're talking IBM-PC here), send a dial command to a Hayes-like modem, and exit. So far I've done all three. However, when the program exits, it lowers DTR as part of it's cleanup (I'm talking previously hacking in BASIC). This is no good, since the dial command goes out and before anything happens, DTR goes low killing the modem. Background: I am using a terminal emulator which operates in block mode. However the modem can't handle a string which ends in an XOFF rather than a carriage return. So.... I though I would write a 'dialer' program which would dial the modem, then exit and start the emulation program so that it is ready by the time the modem connects. So while going from the dialer program to the emulator, DTR has to stay high (so that the modem doesn't hang up). The question: Can I do this with Turbo C? Do I have control over those bits in the 'modem port' of the PC? Thanks, - tom internet: mvac23!thomas@udel.edu or thomas%mvac23@udel.edu uucp : {ucbvax,mcvax,psuvax1,uunet}!udel!mvac23!thomas Location: Newark, DE, USA Quote : NOTICE: System will have a scheduled disk crash at 4:45pm today.