Message-Id: <2.2.16.19980212100841.25774aea@sunf0> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 12 Feb 1998 10:08:41 +0000 To: Eli Zaretskii From: Nigel Megitt Subject: Re: Serial ports? Cc: djgpp AT delorie DOT com Precedence: bulk Thanks Eli, I had indeed read that section of the info file, but, perhaps because there are other things I don't know, I didn't find it very helpful. It does not say how to use the extensions, for instance to open up COM1 with 8 stop bits, at 9600 baud etc., with a 256 byte buffer size, returning a handle which could be used with fgetc or some other i/o function. This is the kind of information I want - I feel sure it is possible, perhaps even very easy, to do, but, being new to PC programming, I can't work out how. Nigel At 11:54 12/02/98 +0200, Eli Zaretskii wrote: > >On 11 Feb 1998, Nigel Megitt wrote: > >> I'm trying to access COM1 and COM2 as buffers with file pointers, but I can't >> find out how to do this by looking in the Info files. Is there an easy way to >> set the ports up and use them, or do I have to use _bios_serialcom to set up >> each port and then take data byte by byte? > >You could use the DJGPP Filesystem Extensions feature. From the DOS >prompt, type "info libc alpha 'File System'" and read there. > > Nigel Megitt Spectrum Planning Group, BBC Research and Development Department, Kingswood Warren, Tadworth, Surrey KT20 6NP Email: nigel DOT megitt AT rd DOT bbc DOT co DOT uk Tel: 01737 836634