home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / xenix / sco / 3540 < prev    next >
Encoding:
Internet Message Format  |  1992-12-25  |  886 b 

  1. Path: sparky!uunet!pacsoft!mike
  2. From: mike@pacsoft.com (Mike Stefanik)
  3. Newsgroups: comp.unix.xenix.sco
  4. Subject: Re: Current Screen Change
  5. Message-ID: <1476@pacsoft.com>
  6. Date: 25 Dec 92 06:44:29 GMT
  7. References: <1992Dec22.131018.9336@uumeme.chi.il.us>
  8. Organization: Pacific Software Group, Riverside, CA
  9. Lines: 17
  10.  
  11. In an article, rwmech@uumeme.chi.il.us (Robert W. Mech) writes:
  12. >I am intrested if anyone knows how to switch the current screen of the console
  13. >automaticly. [...]
  14.  
  15. The easy way is to send the escape sequence to switch console screens.
  16. A simple function would look like this:
  17.  
  18.         void switch_screen(int n)
  19.         {
  20.                 printf("\033[%dz", n);
  21.                 fflush(stdout);
  22.         }
  23.  
  24. For more information, read the screen(HW) manual page.
  25. -- 
  26. Mike Stefanik  mike@pacsoft.com  ...!uunet!pacsoft!mike  (909) 681-2623
  27. Pacific Software Group, Riverside, CA
  28.