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,fedc9afacc2ad9a1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-02 05:28:53 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news2.near.net!news3.near.net!noc.near.net!eisner!kilgallen From: kilgallen@eisner.decus.org (Larry Kilgallen, LJK Software) Newsgroups: comp.lang.ada Subject: Re: Readkey in VAX Ada 83 Message-ID: <1995Feb2.082854.8997@eisner> Date: 2 Feb 95 08:28:53 -0500 References: <1995Jan27.172515.1@clstcs> Organization: DECUServe Date: 1995-02-02T08:28:53-05:00 List-Id: In article <1995Jan27.172515.1@clstcs>, amlombardi@vms4.sci.csupomona.edu writes: > I posted earlier about getting a character from the keyboard buffer but left > out a vital part... I'm using VAX Ada... I've had a few responses and one > person mentioned the file STARLET.... does anyone know if the answer lies in > here because the file is 2500 blocks long ... thanks.. e-mail me with response Package STARLET describes the common programmer interfaces to the VMS operating system, and is available both on VAX and the newer Alpha VMS systems (when VAX Ada or DEC Ada are available). I do not recall your previous post, but if you are trying to read characters from the keyboard before a carriage return has been entered, the procedure you want is STARLET.QIO or STARLET.QIOW. It is not practical to explain the use of QIO online. You should consult the VMS manual called the I/O User's Guide, looking at the chapter about Terminal IO. Perhaps you hoped for a routine which would be portable across operating systems, but I tend to think it would be impossible to specify one which was sufficiently general to cover all operating systems. Your particular need is to avoid waiting for the end of line, but someone else might want to prefill the input buffer with particular text (available on VMS) or specify the color in which characters will be echoed (not available on VMS, but surely available on some other operating system). Specifying the unification of all operating system features would be a daunting task for the designers of Ada, and one which would be outdated immediately by the provision of new features in some operating system. Larry Kilgallen using Ada without being mandated