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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,757768dade9c3255 X-Google-Attributes: gid103376,public From: "Tarjei T. Jensen" Subject: Re: is there a getch() for ada95?? Date: 1996/12/31 Message-ID: <32C8CD9D.54EE@online.no>#1/1 X-Deja-AN: 206906274 references: <32C869F4.5F20@pcnet.com> content-type: text/plain; charset=us-ascii organization: Jensen programvareutvikling mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02E (OS/2; I) Date: 1996-12-31T00:00:00+00:00 List-Id: Michael Rizzo wrote: > > Hello. > Is there a package that does this already.. Something like conio.h > for C? Is there a function that can read charater input from the > keyboard without echo, and without having to press the CR after the > charater... I'm trying to design some screen controls that will use the > arrow keys and the function keys... > If this package doesn't exist is it possible to include conio.h into > my > ada95 progam? I haven't read the specifications, but you might find it worthwhile to read up on the procedure get_immediate. If you don't have a paper copy of the Ada 95 Reference Manual then there is the online version (e.g. from http://www.adahome.com). Paper copies are also available. If you are using an Ada 95 compiler under Unix or GNAT with Gcc then you can always include any getch() or getc() function from C as shown in annex B of the Ada 95 Reference Manual. Just be sure to include the function and not the macro version of the function. If you are not particulary comfortable with Ada yet there is a few books that you may find useful. These are John Barnes "Programming in Ada 95", Norman Cohen "Ada as a 2.nd language" (2.nd edition) and Alan Burns & Andy Wellings "Concurrency in Ada". The latter is probably best seen as an add-on to either of the two former books. Greetings, -- // Tarjei T. Jensen // tarjei@online.no || voice +47 51 62 85 58 // Support you local rescue centre: GET LOST!