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,b9911fa80cbcf7a8 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: SunOS Clear Screen Date: 1997/02/27 Message-ID: <1997Feb27.132853.1@eisner>#1/1 X-Deja-AN: 221872589 X-Nntp-Posting-Host: eisner.decus.org References: <3314F0F8.6025@wmpenn.edu> X-Nntp-Posting-User: KILGALLEN X-Trace: 857068137/297 Organization: LJK Software Newsgroups: comp.lang.ada Date: 1997-02-27T00:00:00+00:00 List-Id: In article , dewar@merv.cs.nyu.edu (Robert Dewar) writes: > Perry asks > > < Ada. I am running GNAT under the Sun Solaris OS.>> > > The important thing to realize is that this is not an Ada question at all. > Ada gives you the capability of generating output streams of bytes. You > have to find out how to clear a screen given the particular terminal drivers > and environment you are using, and either you must write some special > sequence out (e.g. a Ctrl-L might work in some cases), or you need to call > a specialized routine (e.g. an appropriate routine in the curses library). And for some "screens", where one is not emulating a dumb terminal, there is no simple set of characters to write. > But don't look to Ada for a solution to this. Note that exactly the same > would be true in C, there is no way to clear a screen in C either! I think the issue arises because of pathelogical intermixing of languages and operating system environments in products like Borland Pascal. Folks who start in that realm don't see where the Pascal ends and the Borland begins. When one starts with a more academic approach to programming languages, and advances to software engineering approaches, the first response to the "how do I clear the screen" question is "what screen" -- appropriate either to the rocket environment with zero screens or the Airline Control Program with 4000 screens. Larry Kilgallen