Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!brl-adm!adm!mturtle%UMASS.BITNET@wiscvm.wisc.EDU From: mturtle%UMASS.BITNET@wiscvm.wisc.EDU Newsgroups: comp.lang.pascal Subject: RE: cls for pascal? Message-ID: <4911@brl-adm.ARPA> Date: Wed, 11-Mar-87 22:16:45 EST Article-I.D.: brl-adm.4911 Posted: Wed Mar 11 22:16:45 1987 Date-Received: Fri, 13-Mar-87 01:08:50 EST Sender: news@brl-adm.ARPA Lines: 19 Someone recently posted a question asking how to clear the screen from inside a Pascal program. Answer: it depends. What kind of computer are you using? Are you using a terminal hooked up to a larger machine or are you using a personal computer? What kind of terminal or personal computer? If you'll post answers to these questions I'll be more than happy to try to answer your question, but the answer is definitly machine specific. Except. Except that you could probably get away with a little loop like this: For Loop := 1 to 24 do (* Note that this assumes that there are 24 lines on *) WriteLn; (* the screen you want to clear. *) Strictly speaking, this won't do the same thing that cls does in most BASICs, since it (probably) won't home the cursor. But it will clear the mess off of your screen. Good luck, Peter