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.1 required=5.0 tests=BAYES_20,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ub!boulder!csn!news From: mciver@kalkan.colorado.edu (William McIver Jr.) Newsgroups: comp.lang.ada Subject: Re: Non line-buffered input Message-ID: <1990Dec14.004653.6209@csn.org> Date: 14 Dec 90 00:46:53 GMT References: <1115@dcl-vitus.comp.lancs.ac.uk> Sender: news@csn.org Distribution: comp.lang.ada Organization: University of Colorado, Boulder Nntp-Posting-Host: kalkan.colorado.edu List-Id: In article <1115@dcl-vitus.comp.lancs.ac.uk> jason@comp.lancs.ac.uk (Mr.J.P.Kitchen) writes: >Arne - I lost your Email address - but I'm posting here because it should >have more general interest. > >>> >>> Newsgroups: comp.lang.ada >>> Organization: Department of Computing at Lancaster University, UK. >>> >>> Text_io is line buffered. The only way around this is to write your own >>> single character I/O routines in another language (e.g. 'C') and pragma >>> interface it to your Ada programs. >>> > >>That sounds like a practicable solution. The problem is, I don't know >>anything about pragma. Could you possibly tell me how touse it ?? > > >It depends on what system you're using and (unfortunately) which Ada compiler. >On our system which is running under UNIX version xxx and using the York Ada >Compiler, a sample program may be as follows:- > [stuff deleted] > >--Jason FYI: For those using DEC Ada, it is not necessary to write such a routine in another language. One can use the VAX/VMS System Services Package which has the QIO & QIOW routines in an Ada Package interface. I've done this before, unfortunately the source is not immediately available. It is not difficult though. WJM -- -------------------------------------------------------------------- William J. McIver, Jr. mciver@tigger.colorado.edu Department of Computer Science, University of Colorado @ Boulder --------------------------------------------------------------------