From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c64c5909c07a2300 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-08 18:12:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!wn1feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc54.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada way to read/write to character file References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.125.134 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc54 1010542376 12.234.125.134 (Wed, 09 Jan 2002 02:12:56 GMT) NNTP-Posting-Date: Wed, 09 Jan 2002 02:12:56 GMT Organization: AT&T Broadband Date: Wed, 09 Jan 2002 02:12:56 GMT Xref: archiver1.google.com comp.lang.ada:18674 Date: 2002-01-09T02:12:56+00:00 List-Id: >Michael wants to use a serial device for (bidirectional) sequential text I/O. >... >> > I want to communicate with a device hanging on the RS232 port. I have >> > to write to the device and read the answers. >made damn sure it could be used (bidirectionally) with the character devices, Given timing, error conditions, dropped lines, and the likelihood of non-text data, I wonder how often you would actually want to do "sequential text I/O" on an RS232 port. There's also the question of where do you specify parity & baud rate. It's not hard to write a package to do buffered input and output, though it varies quite a lot across OSes. It may also be that the compiler vendor has supplied one solution.