home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c222 / 1.ddi / SOURCE / CLIB / SC_WINDO.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-10  |  953 b   |  67 lines

  1. /*********************
  2.  *
  3.  *  sc_windo.c - screen windowing functions.
  4.  *
  5.  *  Purpose: This file contains functions that work with screen windows.
  6.  *
  7.  *  Blackstar C Function Library
  8.  *  (c) Copyright 1985,1989 Sterling Castle Software
  9.  *
  10.  *******/
  11.  
  12. #include "blackstr.h"
  13. #include "sc_head.h"
  14.  
  15.  
  16. /********
  17.  *
  18.  *   sc_home() - set cursor to home position
  19.  *
  20.  **/
  21.  
  22. void sc_home(void)
  23. {
  24.     sc_setcur(colst_,rowst_);
  25. }
  26.  
  27. /********
  28.  *
  29.  *   sc_winfull() - set to physical screen
  30.  *
  31.  **/
  32.  
  33. void sc_winfull(void)
  34. {
  35.     sc_windo(scolst_,srowst_,scolen_,srowen_);
  36. }
  37.  
  38.  
  39. /********
  40.  *
  41.  *   sc_winpush() - save window
  42.  *
  43.  **/
  44.  
  45. void sc_winpush(void)
  46. {
  47.     ut_push(colst_);
  48.     ut_push(colen_);
  49.     ut_push(rowst_);
  50.     ut_push(rowen_);
  51. }
  52.  
  53.  
  54. /********
  55.  *
  56.  *   sc_winpop() - restore window
  57.  *
  58.  **/
  59.  
  60. void sc_winpop(void)
  61. {
  62.     rowen_=ut_pop();
  63.     rowst_=ut_pop();
  64.     colen_=ut_pop();
  65.     colst_=ut_pop();
  66. }
  67.