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,1852c21ee9dc8fb1 X-Google-Attributes: gid103376,public From: Hung Huynh Subject: Re: How can I clear the screen? Date: 1996/03/29 Message-ID: #1/1 X-Deja-AN: 144863406 references: <4jbr2n$djp@daily-planet.nodak.edu> <4jfqqv$ekh@news.pacifier.com> to: Steve Doiel content-type: TEXT/PLAIN; charset=US-ASCII organization: Chalmers University of Technology mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-03-29T00:00:00+00:00 List-Id: > Well, you don't describe your platform or environment, but the following > works in a text mode window using GNAT on OS/2. It isn't the most > elegant set of routines or methods, but they work for me. I believe they > rely on the ole ANSI.SYS (or equivalent for OS/2) driver. Hi! I tried your package in a unix xterm window and it worked fine. But could you explain how this procedure work? I'm a novice. ------------------------------------------ PROCEDURE ClearScreen IS BEGIN Put( CSI & "2J" ); END ClearScreen; ------------------------------------------ I understand that your CSI is equal to ESC & "[" , but why does the output of the string "ESC[2J" cause a screen clear? Does it have something to do with ANSI?