home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13265 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.2 KB  |  40 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!gatech!concert!sas!mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: Clrscr(); on AMIGA.
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BuF5Ax.65D@unx.sas.com>
  8. Date: Fri, 11 Sep 1992 14:52:08 GMT
  9. References:  <dsaban.4.716206893@cs1.uct.ac.za>
  10. Nntp-Posting-Host: cdevil.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 26
  13.  
  14.  
  15. In article <dsaban.4.716206893@cs1.uct.ac.za>, dsaban@cs1.uct.ac.za (D SABAN) writes:
  16. >I'm studying C on the IBM.  I would like to transfer some of the files I'm
  17. >writing to the Amiga, unfortunately it seems that Clrscr(); only works on
  18. >the IBM.
  19. >
  20. >Does anyone know the equivalent of Clrscr(); for the amiga.
  21.  
  22. Sure:
  23.  
  24.         1) printf("\f");                /* FormFeed clears screen */
  25.  
  26.                 or
  27.  
  28.         2) printf("\x9b[H\x9b[J");      /* ANSI: home cursor, clr scr */
  29.  
  30. There are others, but they start getting odd, such as a SetRast(rp,0);
  31. on the current window, etc.
  32.  
  33. -- 
  34. ---------------
  35. Jim Cooper
  36. (jamie@unx.sas.com)                             bix: jcooper
  37.  
  38. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  39. and not necessarily those of my employer.
  40.