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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f0d4996d72f29e1e X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: clearing a screen in ada? (new to ada) Date: 2000/03/07 Message-ID: <38C53105.CBD5B94A@quadruscorp.com>#1/1 X-Deja-AN: 594253634 Content-Transfer-Encoding: 7bit References: <38c1621e$0$19330@motown.iinet.net.au> <2000Mar4.144232.1@eisner> <38c3fb98$0$16303@motown.iinet.net.au> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 7 Mar 2000 13:40:51 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-03-07T13:40:51+00:00 List-Id: Nigel wrote: > > ahhh sorry I am using GNAT on a PC using the ADAGIDE, we basically are only > allowed to use the standard libs/packages that come with gnat, and I was > hoping to find infor for moving the cursor round the screen such as using a > comand like CLS to clear the screen and also the LOCATE type commands for > postioning the cursor, I have tried using set_col and set_line in the > Text_IO package, but it only works in a positive manner and so I can't go > back up the screen. basically I am righting a box prog to make my input > screens look a little more interesting, and not being able to move the > cursor back up the screen when I have drawn the box is making this hell > thanks once again for help :o) You could "roll your own" screen control code. All you have to do is send the proper escape sequences to the terminal and you can get it to clear the screen, position the cursor, etc. You can send the escape sequences using Ada.Text_IO facilities, so there isn't anything non-standard about it. You can probably get by if you build a small package with two procedures: Clear_Screen and Goto_XY. Just get the escape sequences for those two features and wrap a little code around the Goto_XY one to convert its parameters to proper screen coordinates. Anybody remember off the top of their head what the escape codes are for those functions? MDC -- ============================================================= Marin David Condic - Quadrus Corporation - 1.800.555.3393 1015-116 Atlantic Boulevard, Atlantic Beach, FL 32233 http://www.quadruscorp.com/ m c o n d i c @ q u a d r u s c o r p . c o m ***PLEASE REMOVE THE "-NOSPAM" PART OF MY RETURN ADDRESS*** Visit my web site at: http://www.mcondic.com/ "Because that's where they keep the money." -- Willie Sutton when asked why he robbed banks. =============================================================