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,f8d6e18f325edced X-Google-Attributes: gid103376,public From: Markus Kuhn Subject: Re: Clear screen command? Date: 1998/03/05 Message-ID: <34FE8F35.1DD7ECFD@cl.cam.ac.uk>#1/1 X-Deja-AN: 331048780 Content-Transfer-Encoding: 7bit References: <6dl7sd$6r0$1@tuvoc.udayton.edu> <34FE7D3A.B247A1C1@uredd.sjo.statkart.no> Content-Type: text/plain; charset=us-ascii Organization: Cambridge University, Computer Laboratory Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-03-05T00:00:00+00:00 List-Id: To clear a screen on any ISO 6429 compatible terminal (that's everything claiming to be VT100 or ANSI or xterm compatible), just use procedures such as -- warning: the following code is untested with Ada.Characters.Latin_1; use Ada.Characters.Latin_1; procedure Clear_Screen is begin put(ESC & "[2J"); end; procedure Goto_XY(Row, Column: Natural) is begin put(ESC & "["); put(Row); put(';'); put(Column); put('H'); end; For all the VT100/ISO 6429 commands, see for instance http://www.fh-jena.de/~gmueller/Kurs_halle/esc_vt100.html Completing the above into a nice ISO6429 package for controlling text terminals is left as a small exercise to the reader. Hope this helped ... Markus -- Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK email: mkuhn at acm.org, home page: