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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f8d6e18f325edced X-Google-Attributes: gid103376,public From: Juergen.Pfeifer@t-online.de (Juergen Pfeifer) Subject: Re: Clear screen command? Date: 1998/03/05 Message-ID: <6dnb7j$4gd$1@news01.btx.dtag.de>#1/1 X-Deja-AN: 331294181 Content-Transfer-Encoding: 7bit References: <6dl7sd$6r0$1@tuvoc.udayton.edu> Mime-Version: 1.0 X-Sender: 06162912249-0001@t-online.de Content-Type: text/plain; charset=us-ascii Organization: Pfeifer Family Newsgroups: comp.lang.ada Date: 1998-03-05T00:00:00+00:00 List-Id: Jeremy Mlazovsky wrote: > > Right now, I am stuck doing the generic ADA output that pushes the screen up > one line at a time as another line of text is output. > > I need to know how to clear the screen after a certain number of lines have > been output to the screen. > > Is there some way to make it so that the screen is "locked" in one position, > so that text at the top of the screen remains at the top, and subsequent > lines of output go to the bottom of the screen? > You can solve your problem by using the curses library provided with almost any UNIX like system. The curses library is a set of C routines allowing to program your screen in a terminal independent way. If you think this is the right way to go you may pick up the just released free software implementation of curses named "ncurses" from ftp://prep.ai.mit.edu/pub/gnu. The nice thing with ncurses is, that it comes with a complete Ada95 binding tested and developed for GNAT. Juergen