home *** CD-ROM | disk | FTP | other *** search
/ Hall of Fame / HallofFameCDROM.cdr / prog2 / boss_ng.lzh / BOSSVID.TXT < prev    next >
Encoding:
Text File  |  1988-05-22  |  8.9 KB  |  366 lines

  1. !short: v_spage
  2.          ^bv_spage -- set active display page^b
  3.  
  4.         ^UUSAGE^U
  5.  
  6.           v_spage(page)
  7.           int page;
  8.  
  9.                 page - video page to switch the display to
  10.  
  11.           v_spage is a general purpose routine that can be used outside 
  12.           of the window environment.  
  13.  
  14.         ^URETURNS^U
  15.  
  16.           Nothing.
  17.  
  18.         ^UCAUTIONS^U
  19.  
  20.           Color card only.
  21. !short: v_cls
  22.          ^bv_cls -- clear entire video screen ^b
  23.  
  24.         ^UUSAGE^U
  25.  
  26.           v_cls(atrib)
  27.           int atrib;
  28.  
  29.                 atrib - attribute to be used 
  30.  
  31.           v_cls clears the entire video screen to the specified attribute 
  32.           and places the cursor in the upper left hand corner of the 
  33.           screen.
  34.  
  35.           v_cls is a general purpose routine that can be used outside of 
  36.           the window environment. 
  37.  
  38.           Attributes are defined in windows.h.
  39.  
  40.         ^URETURNS^U
  41.  
  42.           Nothing.
  43.  
  44.         ^UCAUTIONS^U
  45.  
  46.           None.
  47. !short: v_smode
  48.          ^bv_smode -- set video mode^b
  49.  
  50.         ^UUSAGE^U
  51.  
  52.           v_smode(mode)
  53.           int mode;
  54.  
  55.                 mode - mode to set the display to
  56.  
  57.           v_smode is a general purpose routine which can be used outside 
  58.           of the window environment.
  59.  
  60.           Modes are defined in windows.h.
  61.  
  62.         ^URETURNS^U
  63.  
  64.           Nothing.
  65.  
  66.         ^UCAUTIONS^U
  67.  
  68.           None.
  69. !short: v_wca
  70.          ^bv_wca -- write character and attribute^b
  71.  
  72.         ^UUSAGE^U
  73.  
  74.           v_wca(page, char, atrib, count);
  75.           int page, char, atrib, count;
  76.  
  77.                 page -  video page #
  78.                 char -  character to write
  79.                 atrib - attribute to use
  80.                 count - number of times two repeat
  81.  
  82.           v_wca writes the character defined by char count times starting 
  83.           at the current cursor location.     
  84.  
  85.           v_wca is a general purpose routine that can be used outside of 
  86.           the window environment. 
  87.  
  88.           Attributes are defined in windows.h.
  89.  
  90.         ^URETURNS^U
  91.  
  92.           Nothing.
  93.  
  94.         ^UCAUTIONS^U
  95.  
  96.           None.
  97. !short: v_wtty
  98.          ^bv_wtty -- write character TTY mode^b
  99.  
  100.         ^UUSAGE^U
  101.  
  102.           v_wtty(char);
  103.           int  char;
  104.  
  105.                 char -  character to write
  106.  
  107.         v_wtty writes the character defined by char at the current cursor 
  108.         location.  
  109.  
  110.           v_wtty is a general purpose routine that can be used outside of 
  111.           the window environment. 
  112.  
  113.         ^URETURNS^U
  114.  
  115.           Nothing.
  116.  
  117.         ^UCAUTIONS^U
  118.  
  119.           None.
  120. !short: v_locate
  121.          ^bv_locate -- locate (position) cursor^b
  122.  
  123.         ^UUSAGE^U
  124.  
  125.           v_locate(page, row, col);
  126.           int page, row, col;
  127.  
  128.                 page - video page #
  129.                 row  - row to position to
  130.                 col  - column to position to
  131.           
  132.           v_locate positions the cursor to the absolute coordinates 
  133.           specified by row and col on the specified page.  The upper left 
  134.           hand corner of the screen is (0,0).
  135.  
  136.           v_locate is a general purpose routine that can be used outside 
  137.           of the window environment.
  138.  
  139.           Row and Col are range checked.  You CAN position the cursor 
  140.           slightly (25,80) off the screen.
  141.  
  142.         ^URETURNS^U
  143.  
  144.           Nothing.
  145.  
  146.         ^UCAUTIONS^U
  147.  
  148.           None.
  149. !short: v_hidec
  150.          ^bv_hidec -- hide cursor^b
  151.  
  152.         ^UUSAGE^U
  153.  
  154.           v_hidec();
  155.  
  156.           The physical cursor is located off the screen.
  157.  
  158.           This function does not affect any virtual cursor coordinates, 
  159.           it simply hides the physical cursor from view.
  160.  
  161.         ^URETURNS^U
  162.  
  163.           Nothing.
  164.  
  165.         ^UCAUTIONS^U
  166.  
  167.           None.
  168. !short: v_sctype
  169.          ^bv_sctype -- set cursor type (style)^b
  170.  
  171.         ^UUSAGE^U
  172.  
  173.           v_sctype(type, start, end);
  174.           int type, start, end;
  175.  
  176.                 type -  cursor style code (0=hidden, 1=normal, 2=slow, 3=fast)
  177.                 start - start scan line
  178.                 end -   end scan line
  179.  
  180.           As an example, to set a slow flashing block style cursor invoke 
  181.           this function with type=1, start=6, and end=12 (color card).
  182.  
  183.         ^URETURNS^U
  184.  
  185.           Nothing.
  186.  
  187.         ^UCAUTIONS^U
  188.  
  189.           Color and Monochrome adapters only. 
  190.           Not for use on the 3270 PC or Enhanced Graphics Adapters.
  191. !short: v_sapu
  192.          ^bv_sapu -- scroll active display page up^b
  193.  
  194.         ^UUSAGE^U
  195.  
  196.           v_sapu(nl, rul, cul, rlr, clr, atrib);
  197.           int nl, rul, cul, rlr, clr, atrib;
  198.  
  199.                 nl  - number of lines to scroll
  200.                 rul - row of upper left hand corner of scroll area
  201.                 cul - column of upper left hand corner of scroll area
  202.                 rlr - row of lower right corner of scroll area
  203.                 clr - column of lower right corner of scroll area
  204.                 atrib - attribute to be used for blanking
  205.  
  206.           A value of 0 for nl scrolls (blanks) the entire area.  To clear 
  207.           the entire video screen use v_sapu(0, 0, 0, 24, 79, NORMAL).
  208.  
  209.           v_sapu is a general purpose routine that can be used outside of 
  210.           the window environment.  
  211.  
  212.           Attributes are defined in windows.h.
  213.  
  214.         ^URETURNS^U
  215.  
  216.           Nothing.
  217.  
  218.         ^UCAUTIONS^U
  219.  
  220.           None.
  221. !short: v+sapd
  222.          ^bv_sapd -- scroll active display page down^b
  223.  
  224.         ^UUSAGE^U
  225.  
  226.           v_sapd(nl, rul, cul, rlr, clr, atrib);
  227.           int nl, rul, cul, rlr, clr, atrib;
  228.  
  229.                 nl  - number of lines to scroll
  230.                 rul - row of upper left hand corner of scroll area
  231.                 cul - column of upper left hand corner of scroll area
  232.                 rlr - row of lower right corner of scroll area
  233.                 clr - column of lower right corner of scroll area
  234.                 atrib - attribute to be used for blanking
  235.  
  236.           v_sapd is a general purpose routine that can be used outside of 
  237.           the window environment.  
  238.  
  239.           A value of 0 for nl scrolls (blanks) the entire area.  To clear 
  240.           the entire video screen use v_sapd(0, 0, 0, 24, 79, NORMAL).
  241.  
  242.           Attributes are defined in windows.h.
  243.  
  244.         ^URETURNS^U
  245.  
  246.           Nothing.
  247.  
  248.         ^UCAUTIONS^U
  249.  
  250.           None.
  251. !short: v_rcpos
  252.          ^bv_rcpos -- return current cursor position^b
  253.  
  254.         ^UUSAGE^U
  255.  
  256.           v_rcpos(page, row, col);
  257.           int page;
  258.           int *row, *col;       /* POINTERS */
  259.  
  260.                 int page - video page #     
  261.                 int *row - pointer to int to receive row value
  262.                 int *col - pointer to int to receive column value
  263.  
  264.           v_rcpos is a general purpose routine that can be used outside 
  265.           of the window environment.  
  266.  
  267.         ^URETURNS^U
  268.  
  269.           Nothing.
  270.  
  271.         ^UCAUTIONS^U
  272.  
  273.           None.
  274. !short: v_rvcs
  275.          ^bv_rcvs -- return current video state^b
  276.  
  277.         ^UUSAGE^U
  278.  
  279.           v_rcvs(page, vm, cols);
  280.           int *page, *vm, *cols;        /* POINTERS */
  281.  
  282.                 int *page - pointer to int to receive current video page #
  283.                 int *vm   - pointer to int to receive current video mode
  284.                 int *cols - pointer to int to receive current screen width
  285.           
  286.           v_rcvs is a general purpose routine that can be used outside of 
  287.           the window environment.
  288.  
  289.           Modes are defined in windows.h.
  290.  
  291.         ^URETURNS^U
  292.  
  293.           Nothing.
  294.  
  295.         ^UCAUTIONS^U
  296.  
  297.           None.
  298. !short: v_getch
  299.          ^bv_getch -- get keyboard character and scan code^b
  300.  
  301.         ^UUSAGE^U
  302.  
  303.           v_getch();
  304.  
  305.           v_getch is a general purpose routine that can be used outside 
  306.           of the window environment.
  307.  
  308.         ^URETURNS^U
  309.  
  310.           The character and scan code.  The character is in the low order 
  311.           byte, the scan code in the high order byte.
  312.  
  313.         ^UCAUTIONS^U
  314.  
  315.           v_getch waits for a key to be struck.
  316. !short: v_kstat
  317.          ^bv_kstat -- get keyboard status^b
  318.  
  319.         ^UUSAGE^U
  320.  
  321.           v_kstat();
  322.  
  323.           v_kstat is a general purpose routine that can be used outside 
  324.           of the window environment.
  325.  
  326.         ^URETURNS^U
  327.  
  328.           TRUE if a character is available, FALSE if not.
  329.  
  330.         ^UCAUTIONS^U
  331.  
  332.           None.
  333. !short: v_kflush
  334.          ^bv_kflush -- flush keyboard buffer^b
  335.  
  336.         ^UUSAGE^U
  337.  
  338.           v_kflush();
  339.  
  340.           v_kflush clears the keyboard buffer of any pending input.
  341.  
  342.         ^URETURNS^U
  343.  
  344.           Nothing.
  345.  
  346.         ^UCAUTIONS^U
  347.  
  348.           None.
  349. !short: v_border
  350.          ^bv_border -- set border color^b
  351.  
  352.         ^UUSAGE^U
  353.  
  354.           v_border(color)
  355.           int color;
  356.  
  357.              Set overscan border to specified color. 
  358.  
  359.         ^URETURNS^U
  360.  
  361.           Nothing.
  362.  
  363.         ^UCAUTIONS^U
  364.  
  365.           None.
  366.