Mail Archives: djgpp/1995/08/30/11:21:03
On Tue, 29 Aug 1995, Erik Max Francis wrote:
> Is there any simple way within DJGPP (or DOS, I suppose) to redirect
> stdin and stdout through a serial port (say, COM1:)? I don't want to do
> any fancy handling of the serial port as a modem line; I basically just
> want to be able to communicate normally as through stdin and stdout
> through a dumb terminal attached to the serial port to my machine.
Did you try the obvious:
myprog > COM1
COM1 is a ``file'' which DOS takes to exist in every directory (actually,
a device driver loaded by DOS makes it believe so), so this should work,
IMHO. You just have to set your terminal on the other side to the COM1
settings which the BIOS sets at boot time. You also can't communicate
very fast, I suppose.
- Raw text -