home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!jamie
- From: jamie@cdevil.unx.sas.com (James Cooper)
- Subject: Re: Clrscr(); on AMIGA.
- Originator: jamie@cdevil.unx.sas.com
- Sender: news@unx.sas.com (Noter of Newsworthy Events)
- Message-ID: <BuF5Ax.65D@unx.sas.com>
- Date: Fri, 11 Sep 1992 14:52:08 GMT
- References: <dsaban.4.716206893@cs1.uct.ac.za>
- Nntp-Posting-Host: cdevil.unx.sas.com
- Organization: SAS Institute Inc.
- Lines: 26
-
-
- In article <dsaban.4.716206893@cs1.uct.ac.za>, dsaban@cs1.uct.ac.za (D SABAN) writes:
- >I'm studying C on the IBM. I would like to transfer some of the files I'm
- >writing to the Amiga, unfortunately it seems that Clrscr(); only works on
- >the IBM.
- >
- >Does anyone know the equivalent of Clrscr(); for the amiga.
-
- Sure:
-
- 1) printf("\f"); /* FormFeed clears screen */
-
- or
-
- 2) printf("\x9b[H\x9b[J"); /* ANSI: home cursor, clr scr */
-
- There are others, but they start getting odd, such as a SetRast(rp,0);
- on the current window, etc.
-
- --
- ---------------
- Jim Cooper
- (jamie@unx.sas.com) bix: jcooper
-
- Any opinions expressed herein are mine (Mine, all mine! Ha, ha, ha!),
- and not necessarily those of my employer.
-