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,a10d923571c5259e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-10 10:44:53 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Get_Immediate References: <344d0fee.0312100800.33df6ea9@posting.google.com> In-Reply-To: <344d0fee.0312100800.33df6ea9@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 10 Dec 2003 18:44:52 GMT NNTP-Posting-Host: 63.184.105.61 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1071081892 63.184.105.61 (Wed, 10 Dec 2003 10:44:52 PST) NNTP-Posting-Date: Wed, 10 Dec 2003 10:44:52 PST Xref: archiver1.google.com comp.lang.ada:3325 Date: 2003-12-10T18:44:52+00:00 List-Id: Xavier Serrand wrote: > I have to work with Ada 83 .... and, > I have to use the functionnality of Get_Immediate (return immediately > after the keystroke and no echo) > > I tried to interface with c (getch)... it works fine ... with Ada > 95... > I can't interface with Ada 83 ... because i have none of the specific > package to do this work ... > > Could somebody give me a better idea if it's no possibility to find > old packages to interface with c ... Your compiler vendor probably supplies a package with this capability, or that allows you to create this functionality. I wrote a keyboard package for DOS in Ada 83 that provided this functionality using a vendor-supplied package to make DOS calls. You should also be able to import getch using pragma Interface in Ada 83: function Getch ...; pragma Interface (C, Getch); Many compilers also supported pragma Interface_Name to supply the 3rd parameter of pragma Import: pragma Interface_Name (Getch, "getch"); -- IIRC -- Jeff Carter "Perfidious English mouse-dropping hoarders." Monty Python & the Holy Grail 10