home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / uni-lib.zip / MANUAL3.DOC < prev    next >
Text File  |  1987-05-25  |  63KB  |  2,940 lines

  1. Unicorn 1 Documentation  3.1                                      page 112
  2.  
  3. __________________________________________________________________________
  4.  
  5.  
  6.                               prtbs
  7.  
  8.  
  9. Sends a backspace character to the printer.
  10.  
  11.  
  12.  
  13.  
  14. Call:         prtbs();
  15.  
  16.  
  17.  
  18.  
  19.  
  20. Example:      main()
  21.               {
  22.                  prtbs();  /* send a back space to the printer */
  23.               }
  24.  
  25.  
  26.  
  27. Unicorn 1 Documentation  3.1                                      page 113
  28.  
  29. __________________________________________________________________________
  30.  
  31.  
  32.                               prtbuzz
  33.  
  34.  
  35. Sounds the printers alarm buzzer.
  36.  
  37.  
  38.  
  39. Call:         prtbuzz();
  40.  
  41.  
  42.  
  43.  
  44. Example:      main()
  45.               {
  46.                  prtbuzz();  /* sound the printer buzzer */
  47.               }
  48.  
  49.  
  50.  
  51. Unicorn 1 Documentation  3.1                                      page 114
  52.  
  53. __________________________________________________________________________
  54.  
  55.  
  56.                               prtcan
  57.  
  58.  
  59. Sends a cancel character to the printer and stops the print.
  60.  
  61.  
  62.  
  63.  
  64. Call:         prtcan();
  65.  
  66.  
  67.  
  68.  
  69.  
  70. Example:      main()
  71.               {
  72.                  prtcan();   /* send a cancel to the printer */
  73.               }
  74.  
  75.  
  76.  
  77. Unicorn 1 Documentation  3.1                                      page 115
  78.  
  79. __________________________________________________________________________
  80.  
  81.  
  82.                               prtcomof
  83.  
  84.  
  85.  
  86. Turns off the printers compressed print mode.
  87.  
  88.  
  89.  
  90.  
  91. Call:         prtcomof();
  92.  
  93.  
  94.  
  95.  
  96.  
  97. Example:      main()
  98.               {
  99.                  prtcomof();  /* Turn off compressed print */
  100.  
  101.  
  102.  
  103. Unicorn 1 Documentation  3.1                                      page 116
  104.  
  105. __________________________________________________________________________
  106.  
  107.  
  108.                               prtcomon
  109.  
  110.  
  111.  
  112. Turns on the printers compressed print mode.
  113.  
  114.  
  115.  
  116.  
  117. Call:         prtcomon();
  118.  
  119.  
  120.  
  121.  
  122. Example:      main()
  123.               {
  124.                  prtcomon();  /*  turn on the compressed mode */
  125.               }
  126.  
  127.  
  128.  
  129. Unicorn 1 Documentation  3.1                                      page 117
  130.  
  131. __________________________________________________________________________
  132.  
  133.  
  134.                               prtcr
  135.  
  136.  
  137.  
  138. Sends a carriage return character to the printer.
  139.  
  140.  
  141.  
  142.  
  143. Call:         prtcr();
  144.  
  145.  
  146.  
  147.  
  148.  
  149. Example:      main()
  150.               {
  151.                  prtcr();   /* send a carriage return to the printer */
  152.               }
  153.  
  154.  
  155.  
  156. Unicorn 1 Documentation  3.1                                      page 118
  157.  
  158. __________________________________________________________________________
  159.  
  160.  
  161.                               prtduboff
  162.  
  163.  
  164. This function turns off the double strike character mode.  Each character is
  165. struck twice by the print head.
  166.  
  167.  
  168.  
  169.  
  170. Call:         prtduboff();
  171.  
  172.  
  173.  
  174.  
  175. Example:      main()
  176.               {
  177.                  prtduboff();   /* turn off the double struck characters */
  178.               }
  179.  
  180.  
  181.  
  182. Unicorn 1 Documentation  3.1                                      page 119
  183.  
  184. __________________________________________________________________________
  185.  
  186.  
  187.                               prtdubon
  188.  
  189.  
  190.  
  191. This function turns on the double strike character mode.  Each character is
  192. struck twice by the print head.
  193.  
  194.  
  195.  
  196.  
  197. Call:         prtdubon();
  198.  
  199.  
  200.  
  201.  
  202. Example:      main()
  203.               {
  204.                  prtdubon();   /* turn on the double struck characters */
  205.               }
  206.  
  207.  
  208.  
  209.  
  210. Unicorn 1 Documentation  3.1                                      page 120
  211.  
  212. __________________________________________________________________________
  213.  
  214.  
  215.                               prtempof
  216.  
  217.  
  218. This function turns off the emphasized print mode.
  219.  
  220.  
  221.  
  222.  
  223.  
  224. Call:         prtempof();
  225.  
  226.  
  227.  
  228.  
  229. Example:      main()
  230.               {
  231.                  prtempof();  /* turn off the emphasized print mode */
  232.               }
  233.  
  234.  
  235.  
  236. Unicorn 1 Documentation  3.1                                      page 121
  237.  
  238. __________________________________________________________________________
  239.  
  240.  
  241.                               prtempon
  242.  
  243.  
  244. Turns on the emphasized print mode.
  245.  
  246.  
  247.  
  248.  
  249. Call:         prtempon();
  250.  
  251.  
  252.  
  253.  
  254. Example:      main()
  255.               {
  256.                  prtempon();  /* Turn on the emphasized print mode */
  257.               }
  258.  
  259.  
  260.  
  261. Unicorn 1 Documentation  3.1                                      page 122
  262.  
  263. __________________________________________________________________________
  264.  
  265.  
  266.                               prtesc
  267.  
  268.  
  269. Sends an escape character to the printer.
  270.  
  271.  
  272.  
  273.  
  274. Call:         prtesc();
  275.  
  276.  
  277.  
  278.  
  279.  
  280. Example:      main()
  281.               {
  282.                  prtesc();  /* send an escape to the printer */
  283.               }
  284.  
  285.  
  286.  
  287. Unicorn 1 Documentation  3.1                                      page 123
  288.  
  289. __________________________________________________________________________
  290.  
  291.  
  292.                               prtff
  293.  
  294.  
  295. Sends a form feed character to the printer.
  296.  
  297.  
  298.  
  299.  
  300. Call:         prtff();
  301.  
  302.  
  303.  
  304.  
  305.  
  306. Example:      main()
  307.               {
  308.                  prtff();   /* send a form feed to the printer */
  309.               }
  310.  
  311.  
  312.  
  313. Unicorn 1 Documentation  3.1                                      page 124
  314.  
  315. __________________________________________________________________________
  316.  
  317.  
  318.                               prtlf
  319.  
  320.  
  321. Sends a line feed character to the printer.
  322.  
  323.  
  324.  
  325.  
  326. Call:         prtlf();
  327.  
  328.  
  329.  
  330.  
  331.  
  332. Example:      main()
  333.               {
  334.                  prtlf();   /* send a line feed to the printer */
  335.               }
  336.  
  337.  
  338.  
  339. Unicorn 1 Documentation  3.1                                      page 125
  340.  
  341. __________________________________________________________________________
  342.  
  343.  
  344.                               prttab
  345.  
  346.  
  347. Sends a tab character to the printer.
  348.  
  349.  
  350.  
  351.  
  352. Call:         prttab();
  353.  
  354.  
  355.  
  356.  
  357.  
  358. Example:      main()
  359.               {
  360.                  prttab();   /* send a tab to the printer */
  361.               }
  362.  
  363.  
  364.  
  365. Unicorn 1 Documentation  3.1                                      page 126
  366.  
  367. __________________________________________________________________________
  368.  
  369.  
  370.                               prtwidoff
  371.  
  372.  
  373. This function turns of the wide or double width character mode.
  374.  
  375.  
  376.  
  377. Call:         prtwidoff();
  378.  
  379.  
  380.  
  381. Example:      main()
  382.               {
  383.                  prtwidoff();   /* turn off the double width characters */
  384.               }
  385.  
  386.  
  387.  
  388. Unicorn 1 Documentation  3.1                                      page 127
  389.  
  390. __________________________________________________________________________
  391.  
  392.  
  393.                               prtwidon
  394.  
  395.  
  396. Turns on the printer wide or double width character mode.  This mode is
  397. automatically canceled at the next new line sent to the printer.
  398.  
  399.  
  400.  
  401. Call:         prtwidon();
  402.  
  403.  
  404.  
  405.  
  406. Example:      main()
  407.               {
  408.                  prtwidon();    /* turn on the wide mode */
  409.               }
  410.  
  411.  
  412.  
  413.  
  414. E
  415.      Unicorn Library Documentation  3.1                         page 128
  416.  
  417.      __________________________________________________________________
  418.  
  419.                               RAD_DEG
  420. F
  421.      Converts angles expressed in radians to the equivalent angle
  422.      expressed in degrees.   Both the angle and the return are
  423.      doubles.
  424.  
  425.  
  426.  
  427.  
  428.  
  429.      Call:   RAD_DEG(angle);
  430.  
  431.              angle  =  angle expressed in radians
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.      Example:    main()
  439.                  {
  440.                     double a, RAD_DEG();
  441.  
  442.                     a = RAD_DEG(3.45);
  443.                   }
  444.  
  445.  
  446.  
  447. E
  448.      Unicorn Library Documentation  3.1                         page 129
  449.  
  450.      __________________________________________________________________
  451.  
  452.                                raschar
  453.  
  454. F     Prints a single large character on the graphics screen using the
  455.      internal ROM character descriptions.
  456.  
  457.  
  458.  
  459.  
  460.      Call:   raschar(char, ulc, ulr, hmag, vmag, color);
  461.  
  462.              char   =  character to print
  463.              ulc    =  upper left corner column
  464.              ulr    =  upper left corner row
  465.              hmag   =  horizontal magnification factor
  466.              vmag   =  vertical magnification factor
  467.              color  =  color of the character
  468.  
  469.  
  470.      Example:   main()
  471.                 {
  472.                    sm(4);  /* set graphics mode */
  473.                    /* print a large 'A' in color 3 */
  474.                    raschar('A', 50, 50, 4, 4, 3);
  475.                 }
  476.  
  477.  
  478.  
  479.  
  480. Unicorn 1 Documentation  3.1                                      page 130
  481. __________________________________________________________________________
  482.  
  483.  
  484.                               rdhcount
  485.  
  486.  
  487.      Reads the horizontal motion counter value in clicks.
  488.  
  489.  
  490.  
  491. Call:         rdhcount();
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498. Example:      main()
  499.               {
  500.                  rdhcount();
  501.               }
  502.  
  503.  
  504.  
  505. Unicorn 1 Documentation  3.1                                      page 131
  506.  
  507. __________________________________________________________________________
  508.  
  509.  
  510.                               rdvcount
  511.  
  512.  
  513.      Reads the vertical motion counter value in clicks.
  514.  
  515.  
  516.  
  517. Call:         rdvcount();
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524. Example:      main()
  525.               {
  526.                  rdvcount();
  527.               }
  528.  
  529.  
  530.  
  531. Unicorn 1 Documentation  3.1                                      page 133
  532.  
  533. __________________________________________________________________________
  534.  
  535.  
  536.                               readkey
  537.  
  538.  
  539. Returns a key for both ascii and scan codes.  Scan code is in high byte of
  540. integer return and ascii code is in low byte.  This is a destructive read.
  541.  
  542.  
  543.  
  544.  
  545. Call:         readkey();
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552. Example:      main()
  553.               {
  554.                  int a;
  555.                  a = readkey(); /* get a key */
  556.               }
  557.  
  558.  
  559.  
  560. Unicorn 1 Documentation  3.1                                      page 134
  561.  
  562. __________________________________________________________________________
  563.  
  564.  
  565.                               redalert
  566.  
  567.  
  568. Sounds a series of 4 rapid upward glissandos forming a red alert signal.
  569.  
  570.  
  571.  
  572.  
  573.  
  574. Call:         redalert();
  575.  
  576.  
  577.  
  578.  
  579.  
  580. Example:      main()
  581.               {
  582.                  redalert();   /* Sound the red alert */
  583.               }
  584.  
  585.  
  586.  
  587.  
  588. E
  589.      Unicorn Library Documentation  3.1                         page 135
  590.  
  591.      __________________________________________________________________
  592.  
  593.                               replacech
  594.  
  595. F     Replaces all occurances of a character in a string with a new
  596.      character.
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.      Call:   replacech(str, old, new);
  604.  
  605.              str  =  string to be searched
  606.              old  =  original character to be replaced
  607.              new  =  the new replacement character for string
  608.  
  609.  
  610.  
  611.  
  612.      Example:     main()
  613.                   {
  614.                      char *a = "This is a test";
  615.                      /* replace all lower case t's with upper case T's */
  616.                      replacech(a, 't', 'T');
  617.                   }
  618.  
  619.  
  620.  
  621. Unicorn 1 Documentation  3.1                                      page 136
  622.  
  623. __________________________________________________________________________
  624.  
  625.  
  626.                               rhjoystk
  627.  
  628.  
  629.       Returns the right joystick's current horizontal position.
  630.  
  631.  
  632. Call:         rhjoystk();
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639. Example:      main()
  640.               {
  641.                  printf("The joystick is at %d", rhjoystk());
  642.               }
  643.  
  644.  
  645.  
  646.  
  647. Unicorn 1 Documentation  3.1                                      page 137
  648.  
  649. __________________________________________________________________________
  650.  
  651.  
  652.                               rvjoystk
  653.  
  654.  
  655.       Returns the right joystick's current vertical position.
  656.  
  657.  
  658. Call:         rvjoystk();
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665. Example:      main()
  666.               {
  667.                  printf("The joystick is at %d", rvjoystk());
  668.               }
  669.  
  670.  
  671.  
  672. Unicorn 1 Documentation  3.1                                      page 138
  673.  
  674. __________________________________________________________________________
  675.  
  676.  
  677.                               scankey
  678.  
  679.  
  680. This function returns 0 if no key is avialable.  If the return is non 0
  681. then the key is read non-destructively and the scan code is returned in
  682. the high byte of an integer and the ascii code is returned in the low byte.
  683.  
  684.  
  685.  
  686.  
  687.  
  688. Call:         scankey();
  689.  
  690.  
  691.  
  692.  
  693.  
  694. Example:      main()
  695.               {
  696.                  int a;
  697.                  a = scankey(); /* get values if a key is available */
  698.               }
  699.  
  700.  
  701.  
  702. E
  703.      Unicorn Library Documentation  3.1                         page 139
  704.  
  705.      __________________________________________________________________
  706.  
  707.                                setatten
  708.  
  709. F                            Tandy 1000 only
  710.  
  711.      Sound primative function to allow setting the attenuation of any
  712.      of the 3 sound channels.
  713.  
  714.  
  715.  
  716.  
  717.      Call:  setatten(voice, level);
  718.  
  719.             voice  =  1, 2, or 3
  720.             level  =  1 to 15 with 15 being the maximum attenuation or
  721.                       soundoff.
  722.  
  723.  
  724.  
  725.      Example:   main()
  726.                 {
  727.                    /*  set the sound level in voice 1 to very loud and
  728.                        voice 2 to off                                 */
  729.                    setatten(1, 1);
  730.                    setatten(2, 15);
  731.                 }
  732.  
  733.  
  734.  
  735. Unicorn 1 Documentation  3.1                                      page 140
  736.  
  737. __________________________________________________________________________
  738.  
  739.  
  740.                              script
  741.  
  742.     Writes to the screen using a large script style font.
  743.  
  744.  
  745.     Call:   script(character, row, col, color);
  746.  
  747.  
  748.  
  749.  
  750. Example:      main()
  751.               {
  752.                   script('A', 20, 30, 1);
  753.                       /* writes a script A on the screen, the upper left
  754.                          corner will be at row 20, column 30 and it will
  755.                          be written in color 1. */
  756.               }
  757.  
  758.  
  759.  
  760. Unicorn 1 Documentation  3.1                                      page 141
  761.  
  762. __________________________________________________________________________
  763.  
  764.  
  765.                               setcallm
  766.  
  767.  
  768.     Set a user defined subroutine mask.  The mouse software interrupts
  769.     automatically stop execution of your program and call the specified
  770.     routine whenever 1 or more of the conditions defined in the mask are
  771.     met.  On completion of the subroutine your program continues
  772.     execution at the point of interruption.
  773.  
  774.     Call:  setcallm(mask, address);
  775.  
  776.     Where:
  777.            mask = the call mask with mask bits as follows.
  778.                   0 - cursor postion changes
  779.                   1 - left button pressed
  780.                   2 - left button released
  781.                   3 - right button pressed
  782.                   4 - right button released
  783.                   5 to 15 not used.
  784.             address = address offset to the subroutine.
  785.  
  786.  
  787.  
  788. Example:      main()
  789.               {
  790.                  setcallm(2, 0x40); /* calls the subroutine if left
  791.                                        button is pressed            */
  792.               }
  793.  
  794.  
  795.  
  796.  
  797. E
  798.      Unicorn Library Documentation  3.1                         page 142
  799.  
  800.      __________________________________________________________________
  801.  
  802.                                setcur
  803.  
  804. F
  805.       Passes a graphics cursor to the mouse driver allowing the user to
  806.       define the cursor shape and hot spot.
  807.  
  808.  
  809.      Call:   setcur(h_hot_spot, v_hot_spot, cursor);
  810.  
  811.      Where:
  812.            h_hot_spot = horizontal hot spot for cursor
  813.            v_hot_spot = vertical hot spot for cursor
  814.            cursor     = pointer the the cursor screen and shape arrays
  815.  
  816.  
  817.  
  818.      Example:   main()
  819.                 {
  820.            /*  see the mouse manual for examples on cursor arrays */
  821.                 }
  822.  
  823.  
  824.  
  825.  
  826. E
  827.      Unicorn Library Documentation  3.1                         page 143
  828.  
  829.      __________________________________________________________________
  830.  
  831.                                setcurp
  832.  
  833. F     Sets the cursor position to a specified row an column.
  834.  
  835.  
  836.  
  837.  
  838.      Call:   setcurp(row, column);
  839.  
  840.              row     =  row to set cursor in
  841.              column  =  column to set cursor in
  842.  
  843.  
  844.  
  845.  
  846.      Example:   main()
  847.                 {
  848.                   sm(4);   /* set graphics mode  */
  849.                   /* move cursor to row 10, column 43 */
  850.                   setcurp(10, 43);
  851.                 }
  852.  
  853.  
  854.  
  855.  
  856. E
  857.      Unicorn Library Documentation  3.1                         page 144
  858.  
  859.      __________________________________________________________________
  860.  
  861.                                setcurt
  862.  
  863. F     Sets the cursor type. (start and stop lines.)
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.      Call:  setcurt(start, stop);
  871.  
  872.             start  =  the line in character cell where cursor starts
  873.             stop   =  the line in character cell where cursor stops
  874.  
  875.  
  876.  
  877.  
  878.      Example:    main()
  879.                  {
  880.                     /*  set the normal 2 line high cursor  */
  881.  
  882.                     setcurt(0,1);
  883.                  }
  884.  
  885.  
  886.  
  887.  
  888. E
  889.      Unicorn Library Documentation  3.1                         page 145
  890.  
  891.      __________________________________________________________________
  892.  
  893.                                sethor
  894.  
  895. F
  896.      Allows the user to set the maximum and minimum horizontal positions
  897.      for the mouse.  These values are defined by the virtual screen.  If
  898.      the cursor is outside the defined area when called, it moves to just
  899.      inside the area.  If the minimum is graeter the values are swapped.
  900.  
  901.  
  902.      Call:  sethor(min, max);
  903.  
  904.      Where:
  905.             min  =  the minimum position
  906.             max  =  the maximum position
  907.  
  908.  
  909.  
  910.      Example:   main()
  911.                 {
  912.            /*  see the mouse manual for examples */
  913.                 }
  914.  
  915.  
  916.  
  917.  
  918.  
  919. E
  920.      Unicorn Library Documentation  3.1                         page 146
  921.  
  922.      __________________________________________________________________
  923.  
  924.                                setmode
  925.  
  926. F
  927.     Set the video mode.  Uses a C interrupt call.  The video mode is
  928.     defined from the following table.
  929.  
  930.   IBM Modes
  931.     0  -   40x25    Monochrome text
  932.     1  -   40x25    Color text
  933.     2  -   80x25    Mono text
  934.     3  -   80x25    Color text
  935.     4  -   320x200  Color graphics
  936.     5  -   320x200  Mono graphics
  937.     6  -   640x200  2 color graphics
  938.     7  -   80x25    Monochrome adapter text
  939.  
  940.   Tandy & PCjr modes
  941.     8  -   160x200  16 color graphics
  942.     9  -   320x200  16 color graphics
  943.    10  -   640x200  4 color graphics
  944.  
  945.   EGA Modes
  946.    13  -   320x200  16 color graphics
  947.    14  -   640x200  16 color graphics
  948.    15  -   640x350  Mono graphics
  949.    16  -   640x350  4 or 16 color graphics
  950.  
  951.      Call:  setmode(mode);
  952.  
  953.      Where:
  954.             mode =  the desired video mode
  955.  
  956.      Example:   main()
  957.                 {
  958.            setmode(4); /*  set 4 color graphics mode */
  959.                 }
  960.  
  961.  
  962.  
  963.  
  964. E
  965.      Unicorn Library Documentation  3.1                         page 147
  966.  
  967.      __________________________________________________________________
  968.  
  969.                                setpage
  970.  
  971. F
  972.     Set the visual page or page being viewed as opposed to the active
  973.     page being written to.
  974.  
  975.  
  976.      Call:  setpage(page);
  977.  
  978.      Where:
  979.             page =  the desired video page
  980.  
  981.      Example:   main()
  982.                 {
  983.            setpage(0); /*  set page 0 */
  984.                 }
  985.  
  986.  
  987.  
  988.  
  989.  
  990. E
  991.      Unicorn Library Documentation  3.1                         page 148
  992.  
  993.      __________________________________________________________________
  994.  
  995.                                setfreq
  996.  
  997. F                         Tandy 1000 only
  998.  
  999.      Sound function to set a value into a sound register for a specified
  1000.      voice.  The value to set is calculated by the formula:
  1001.  
  1002.                         value = 111843 / frequency
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.      Call:   setfreq(voice, frequency);
  1009.  
  1010.              voice      =  voice ( 0-3)
  1011.              frequency  =  frequency to set into voice register
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.      Example:   main()
  1018.                 {
  1019.                    /*  set a 1000 hz tone into voice 2 */
  1020.  
  1021.                    setfreq(2, 1000);
  1022.                 }
  1023.  
  1024.  
  1025.  
  1026. E
  1027.      Unicorn Library Documentation  3.1                         page 149
  1028.  
  1029.      __________________________________________________________________
  1030.  
  1031.                                setpal
  1032.  
  1033. F                         Tandy 1000 only
  1034.  
  1035.      Allows the user to set any color into a plalette register.
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.      Call:   setpal(pal_reg, color);
  1043.  
  1044.              pal_reg  =  the number of the palette register to change
  1045.              color    =  color to set into palette register
  1046.  
  1047.  
  1048.  
  1049.      Example:     main()
  1050.                   {
  1051.                      sm(4);  /*  set graphics mode */
  1052.                      /*  set palette register 14 to color 4 (red);
  1053.                      setpal(14, 4);
  1054.                      /*  any reference to color 14 (yellow) will now
  1055.                          display color 4 (red) instead.              */
  1056.                   }
  1057.  
  1058.  
  1059.  
  1060. E
  1061.      Unicorn Library Documentation  3.1                         page 150
  1062.  
  1063.      __________________________________________________________________
  1064.  
  1065.                                setpos
  1066.  
  1067. F
  1068.     Allows the user to set the current mouse cursor position.
  1069.  
  1070.      Call:  setpos(hor, ver);
  1071.  
  1072.      Where:
  1073.             hor =  desired horizontal position, Must be inside the
  1074.                    virtual screen limits
  1075.             ver =  desired vertical position, Must be within the
  1076.                    virtual screen limits
  1077.  
  1078.      Example:   main()
  1079.                 {
  1080.                     setpos(30, 20);
  1081.                 }
  1082.  
  1083.  
  1084.  
  1085.  
  1086. E
  1087.      Unicorn Library Documentation  3.1                         page 151
  1088.  
  1089.      __________________________________________________________________
  1090.  
  1091.                                settxtc
  1092.  
  1093. F
  1094.      Select either a software of a hardware text cursor.  For the software
  1095.      cursor this function defines the character attribute of the cursor
  1096.      when in the text mode.  If a hardware cursor is selected this function
  1097.      defines the first and last scan lines for the text cursor.
  1098.  
  1099.  
  1100.  
  1101.      Call:  settxtc(type, first, second);
  1102.  
  1103.      Where:
  1104.             type   = 0 for software cursor
  1105.                      1 for hardware cursor
  1106.             first  = screen mask value if software cursor, number of first
  1107.                      scan line if hardware cursor.
  1108.             second = cursor mask value if software cursor, number of last
  1109.                      scam line if hardware cursor.
  1110.  
  1111.      Example:   main()
  1112.                 {
  1113.                     setpos(0, 2, 5);
  1114.                 }
  1115.  
  1116.  
  1117.  
  1118.  
  1119. E
  1120.      Unicorn Library Documentation  3.1                         page 152
  1121.  
  1122.      __________________________________________________________________
  1123.  
  1124.                                setver
  1125.  
  1126. F
  1127.      Allows the user to set the maximum and minimum vertical positions
  1128.      for the mouse.   These values aredefined by the virtual screen.  If
  1129.      the cursor is outside the defined area when called, it moves to just
  1130.      inside the area.  If the minimum is greater the valuse are swapped.
  1131.  
  1132.  
  1133.      Call:  setver(min, max);
  1134.  
  1135.      Where:
  1136.               min = the minimum position
  1137.               max = the maximum position
  1138.  
  1139.  
  1140.      Example:   main()
  1141.                 {
  1142.                    /* see the mouse manual */
  1143.                 }
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149. E
  1150.      Unicorn Library Documentation  3.1                         page 153
  1151.  
  1152.      __________________________________________________________________
  1153.  
  1154.                               siren
  1155. F
  1156.  
  1157.  
  1158. This function sounds a series of up and down glissandos simulating a siren
  1159. sound.
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165. Call:         siren(number);
  1166.  
  1167.               number = the number of up/down glissandos to sound */
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173. Example:      main()
  1174.               {
  1175.                  siren(5);  /* sound 5 up/down siren sounds */
  1176.               }
  1177.  
  1178.  
  1179.  
  1180. E
  1181.      Unicorn Library Documentation  3.1                         page 154
  1182.  
  1183.      __________________________________________________________________
  1184.  
  1185.                                sm
  1186.  
  1187. F
  1188.      Sets the video mode.  For this library to work properly all
  1189.      graphics must be done in mode 4 for the IBM-PC version and in mode
  1190.      9 for the tandy version.  The mode 4 version may be used on a
  1191.      Tandy 1000 to create fully compatible IBM-PC programs.
  1192.      In addition upon exiting a tandy version (mode 9) program the mode
  1193.      must be reset back to mode 3.  Failure to do so will probably cause
  1194.      the machine to crash.
  1195.  
  1196.  
  1197.  
  1198.  
  1199.      Call:   sm(mode);
  1200.  
  1201.              mode  =  video mode desired according to below table
  1202.  
  1203.              Mode Table
  1204.  
  1205.              0  -  40x25 balck and white
  1206.              1  -  40x25 color
  1207.              2  -  80x25 black and white
  1208.              3  -  80x25 color
  1209.              4  -  320x200 4 color graphics
  1210.              5  -  320x200 black and white graphics
  1211.              6  -  640x200 black and white graphics
  1212.              7  -  EDo NOT Use!F
  1213.              8  -  160x200 color graphics with 16 colors
  1214.              9  -  320x200 color graphics with 16 colors
  1215.              10 -  640x200 color graphics with 4 colors
  1216.  
  1217.  
  1218.      Example:   main()
  1219.                 {
  1220.                   sm(9);  /* set graphics mode 9 for Tandy 1000 */
  1221.                 }
  1222.  
  1223.  
  1224.  
  1225.  
  1226. E
  1227.      Unicorn Library Documentation  3.1                         page 155
  1228.  
  1229.      __________________________________________________________________
  1230.  
  1231.                               spratio
  1232. F
  1233.  
  1234.      Sets the ratio of clicks to pixels.  The horizontal and vertical
  1235.      ratios specify a number of clicks per 8 pixels.  Must be in the
  1236.      range of 0 to 32767.
  1237.  
  1238.  
  1239.  
  1240.      Call:   spratio(hor, ver);
  1241.  
  1242.      Where:
  1243.             hor = horizontal click/pixel ratio, default 8/8
  1244.             ver = vertical click/pixel ratio, default 16/8
  1245.  
  1246.  
  1247. Example:      main()
  1248.               {
  1249.                  spratio( 2, 3);
  1250.               }
  1251.  
  1252.  
  1253.  
  1254.  
  1255. E
  1256.      Unicorn Library Documentation  3.1                         page 156
  1257.  
  1258.      __________________________________________________________________
  1259.  
  1260.                               sscrcurp
  1261. F
  1262.  
  1263.      Set the screen cursor to the specified row and column.  The home
  1264.      position is 0,0.   Used with window functions.
  1265.  
  1266.  
  1267.      Call:   sscrcurp(row, col);
  1268.  
  1269.      Where:
  1270.             row = desired row;
  1271.             col = desired column;
  1272.  
  1273. Example:      main()
  1274.               {
  1275.                  sscrcurp(5, 8);
  1276.               }
  1277.  
  1278.  
  1279.  
  1280. E
  1281.      Unicorn Library Documentation  3.1                         page 157
  1282.  
  1283.      __________________________________________________________________
  1284.  
  1285.                                soundoff
  1286.  
  1287. F                          Tandy 1000 only
  1288.  
  1289.      Turns off the complex sound generator chip.
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.  
  1298.      Call:   soundoff();
  1299.  
  1300.  
  1301.  
  1302.  
  1303.      Example:    main()
  1304.                  {
  1305.                     /*  Turn off the complex sound generator chip */
  1306.  
  1307.                     soundoff();
  1308.                  }
  1309.  
  1310.  
  1311.  
  1312.  
  1313. E
  1314.      Unicorn Library Documentation  3.1                         page 158
  1315.  
  1316.      __________________________________________________________________
  1317.  
  1318.                                soundon
  1319.  
  1320. F                        Tandy 1000 only
  1321.  
  1322.      Turns on the complex sound generator chip.  Must be called prior to
  1323.      any call to other sound functions.
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.      Call:   soundon();
  1330.  
  1331.  
  1332.  
  1333.  
  1334.      Example:    main()
  1335.                  {
  1336.                     /* turn on the sound chip */
  1337.                     soundon();
  1338.                  }
  1339.  
  1340.  
  1341.  
  1342.  
  1343. E
  1344.      Unicorn Library Documentation  3.1                         page 159
  1345.  
  1346.      __________________________________________________________________
  1347.  
  1348.                                spalreg
  1349.  
  1350. F                          Tandy 1000 only
  1351.  
  1352.      Changes the defined color of any palette register from 0 to 15.
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.      Call:    spalreg(reg_num, color);
  1361.  
  1362.               reg_num  =  register to change
  1363.               color    =  new color fro the register
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370.      Example:     main()
  1371.                   {
  1372.                      sm(4);  /*  set graphics mode */
  1373.                      /*  set palette register 14 to color 4 (red);
  1374.                      spalreg(14, 4);
  1375.                      /*  any reference to color 14 (yellow) will now
  1376.                          display color 4 (red) instead.              */
  1377.                   }
  1378.  
  1379.  
  1380.  
  1381.  
  1382. E
  1383.      Unicorn Library Documentation  3.1                         page 160
  1384.  
  1385.      __________________________________________________________________
  1386.  
  1387.                                sstring
  1388.  
  1389. F     Print a stroke character string on the graphics screen.
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.      Call:   sstring(string, ulc, ulr, hmag, vmag, colorb, colorf);
  1397.  
  1398.              string  =  string to be printed
  1399.              ulc     =  upper left corner column
  1400.              ulr     =  upper left corner row
  1401.              hmag    =  horizontal magnification
  1402.              vmag    =  vertical magnification
  1403.              colorb  =  border outline color
  1404.              colorf  =  color to use in filling characters
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.      Example:     main()
  1411.                   {
  1412.                      sm(4);  /* set graphics mode */
  1413.                      /* print the string "test" using stroke characters
  1414.                         with a red outline and filled with yellow      */
  1415.                      sstring("test", 10, 20, 2, 2, 4, 14);
  1416.  
  1417.  
  1418.  
  1419. E
  1420.      Unicorn Library Documentation  3.1                         page 161
  1421.  
  1422.      __________________________________________________________________
  1423.  
  1424.                                stchar
  1425.  
  1426. F     Prints a single stroke character on the graphics screen
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.      Call:   stchar(char, ulc, ulr, hmag, vmag, colorb, colorf);
  1433.  
  1434.              char    =  character to be printed
  1435.              ulc     =  upper left corner column
  1436.              ulr     =  upper left corner row
  1437.              hmag    =  horizontal magnification
  1438.              vmag    =  vertical magnification
  1439.              colorb  =  border outline color
  1440.              colorf  =  color to use in filling characters
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.      Example:     main()
  1447.                   {
  1448.                      sm(4);  /* set graphics mode */
  1449.                      /* print the character 't' using stroke characters
  1450.                         with a red outline and filled with yellow      */
  1451.                       stchar('t', 10, 20, 2, 2, 4, 14);
  1452.  
  1453.  
  1454.  
  1455. E
  1456.      Unicorn Library Documentation  3.1                         page 162
  1457.  
  1458.      __________________________________________________________________
  1459.  
  1460.                                strclr
  1461.  
  1462. F     Prints a string on the screen in one of 16 colors.
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.      Call:    strclr(color, string);
  1469.  
  1470.               color   =  color to use in printing string
  1471.               string  =  string to print
  1472.  
  1473.  
  1474.  
  1475.  
  1476.      Example:    main()
  1477.                  {
  1478.                     /*  print the string "test" in red */
  1479.                     strclr(4, "test");
  1480.                  }
  1481.  
  1482.  
  1483.  
  1484. E
  1485.      Unicorn Library Documentation  3.1                         page 163
  1486.  
  1487.      __________________________________________________________________
  1488.  
  1489.                               strdel
  1490.  
  1491. F     Deletes a substring from a given string starting at the character
  1492.      numbered 'first' and continuing for 'number' of characters.
  1493.  
  1494.  
  1495.  
  1496.  
  1497.      Call:   strdel(str, first, number);
  1498.  
  1499.              str     =  string to be operated upon
  1500.              first   =  character to start the delete operation
  1501.              number  =  number of characters to delete
  1502.  
  1503.  
  1504.  
  1505.      Example:     main()
  1506.                   {
  1507.                      /*  delete the word is */
  1508.                      strdel("This is a test", 5,2);
  1509.                   }
  1510.  
  1511.  
  1512.  
  1513. E
  1514.      Unicorn Library Documentation  3.1                         page 164
  1515.  
  1516.      __________________________________________________________________
  1517.  
  1518.                               strpad
  1519.  
  1520. F     Pad a string with blanks on the left.
  1521.  
  1522.  
  1523.  
  1524.  
  1525.  
  1526.  
  1527.  
  1528.      Call:   strpad(str, number);
  1529.  
  1530.              str     =  string to be padded
  1531.              number  =  number of spaces to be added to the left
  1532.  
  1533.  
  1534.  
  1535.      Example:    main();
  1536.                  {
  1537.                     /* add 5 spaces to left of "This is a test" */
  1538.                     strpad("This is a test", 5);
  1539.                  }
  1540.  
  1541.  
  1542.  
  1543. E
  1544.      Unicorn Library Documentation  3.1                         page 165
  1545.  
  1546.      __________________________________________________________________
  1547.  
  1548.                               strtolow
  1549.  
  1550. F     Converts all characters in a string to lower case.
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.      Call:   strtolow(str);
  1559.  
  1560.              str  = string to be changed to all lower case.
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.      Example:      main()
  1568.                    {
  1569.                       char *a = "Testing";
  1570.                       strtolow(a);
  1571.                    }
  1572.  
  1573.  
  1574.  
  1575. E
  1576.      Unicorn Library Documentation  3.1                         page 166
  1577.  
  1578.      __________________________________________________________________
  1579.  
  1580.                               strtoup
  1581.  
  1582. F     Converts all characters in a string to upper case.
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.      Call:   strtoup(str);
  1591.  
  1592.              str  = string to be changed to all upper case.
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.      Example:      main()
  1600.                    {
  1601.                       char *a = "Testing";
  1602.                       strtoup(a);
  1603.                    }
  1604.  
  1605.  
  1606.  
  1607. E
  1608.      Unicorn Library Documentation  3.1                         page 167
  1609.  
  1610.      __________________________________________________________________
  1611.  
  1612.                                turnleft
  1613.  
  1614. F     Turns the turtle's current heading left by a specified number of
  1615.      degrees.
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.      Call:    turnleft(angle);
  1623.  
  1624.               angle  =  angle to turn through
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.      Example:    main()
  1631.                  {
  1632.                     sm(4);   /*  set graphics mode  */
  1633.  
  1634.                     /*  turn the turtle's heading left 50 degrees */
  1635.  
  1636.                     turnleft(50);
  1637.                  }
  1638.  
  1639.  
  1640.  
  1641. E
  1642.      Unicorn Library Documentation  3.1                         page 168
  1643.  
  1644.      __________________________________________________________________
  1645.  
  1646.                                turnright
  1647.  
  1648. F     Turns the turtle's current heading right by a specified number of
  1649.      degrees.
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.      Call:    turnright(angle);
  1657.  
  1658.               angle  =  angle to turn through
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.      Example:    main()
  1665.                  {
  1666.                     sm(4);   /*  set graphics mode  */
  1667.  
  1668.                     /*  turn the turtle's heading right 50 degrees */
  1669.  
  1670.                     turnright(50);
  1671.                  }
  1672.  
  1673.  
  1674.  
  1675. E
  1676.      Unicorn Library Documentation  3.1                         page 169
  1677.  
  1678.      __________________________________________________________________
  1679.  
  1680.                                usrfont
  1681.  
  1682. F
  1683.      Select and print characters in various fonts on the graphics screen.
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.      Call:   usrfont(char, ulc, ulr, hmag, vmag, color, font);
  1692.  
  1693.              char   =  character to be printed
  1694.              ulc    =  upper left corner column
  1695.              ulr    =  upper left corner row
  1696.              hmag   =  horizontal magnification
  1697.              vmag   =  vertical magnification
  1698.              color  =  color to use in printing character
  1699.              font   =  an integer used to select which font.
  1700.  
  1701.              Font Table:
  1702.  
  1703.              0  -  Thin block all capital letters
  1704.              1  -  small characters for sub/superscripts.  Generally
  1705.                    defined in upper 4 columns and 4 rows of character cell.
  1706.              2  -  NOT YET DEFINED
  1707.              3  -  NOT YET DEFINED
  1708.              4  -  NOT YET DEFINED
  1709.  
  1710.  
  1711.      Example:     main()
  1712.                   {
  1713.                      sm(4);  /*  set graphics mode  */
  1714.  
  1715.                      /*  print an 'A' from the sub/superscript font at
  1716.                          twice normal size in color 3                 */
  1717.                      usrfont('A', 10, 20, 2, 2, 3, 1);
  1718.                   }
  1719.  
  1720.  
  1721.  
  1722.      Unicorn 1 Documentation  3.1                                page 170
  1723.      ____________________________________________________________________
  1724.  
  1725.  
  1726.                                  wsm
  1727.  
  1728.      Sets the video mode.  For this library to work properly all
  1729.      graphics must be done in mode 4 for the IBM-PC version and in mode
  1730.      9 for the tandy version.  The mode 4 version may be used on a
  1731.      Tandy 1000 to create fully compatible IBM-PC programs.
  1732.      In addition upon exiting a tandy version (mode 9) program the mode
  1733.      must be reset back to mode 3.  Failure to do so will probably cause
  1734.      the machine to crash.
  1735.  
  1736.  
  1737.  
  1738.  
  1739.      Call:   sm(mode);
  1740.  
  1741.              mode  =  video mode desired according to below table
  1742.  
  1743.              Mode Table
  1744.  
  1745.              0  -  40x25 balck and white
  1746.              1  -  40x25 color
  1747.              2  -  80x25 black and white
  1748.              3  -  80x25 color
  1749.              4  -  320x200 4 color graphics
  1750.              5  -  320x200 black and white graphics
  1751.              6  -  640x200 black and white graphics
  1752.              7  -  EDo NOT Use!F
  1753.              8  -  160x200 color graphics with 16 colors
  1754.              9  -  320x200 color graphics with 16 colors
  1755.              10 -  640x200 color graphics with 4 colors
  1756.  
  1757.  
  1758.      Example:   main()
  1759.                 {
  1760.                   sm(9);  /* set graphics mode 9 for Tandy 1000 */
  1761.                 }
  1762.  
  1763. E
  1764.      Unicorn Library Documentation  3.1                         page 171
  1765.  
  1766.      __________________________________________________________________
  1767.  
  1768.                                   wac
  1769.  
  1770. F     Prints a character on the screen using an attribute byte.
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.      Call:   wac(attribute, char);
  1777.  
  1778.              attribute  =  attribute to use in printing character
  1779.              char       =  character to be printed
  1780.  
  1781.              attribute byte is formed according to below bit definitions
  1782.  
  1783.              foreground;
  1784.                         bit 0 = blue
  1785.                         bit 1 = green
  1786.                         bit 2 = red
  1787.                         bit 3 = intensity
  1788.              background;
  1789.                         bit 4 = blue
  1790.                         bit 5 = green
  1791.                         bit 6 = red
  1792.                         bit 7 = blink
  1793.  
  1794.  
  1795.  
  1796.      Example:   main()
  1797.                 {
  1798.                    /*  print the character 't' with a blue background
  1799.                        using bright red character color.             */
  1800.                    wac(28, 't');
  1801.                 }
  1802.  
  1803.  
  1804.  
  1805.  
  1806. E
  1807.      Unicorn Library Documentation  3.1                         page 172
  1808.  
  1809.      __________________________________________________________________
  1810.  
  1811.                                 waitkey
  1812.  
  1813. F     Pauses the computer until a key is pressed.  It does NOT return
  1814.      the key scan code or ascii value.
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.      Call:   waitkey();
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.      Example:   main()
  1828.                 {
  1829.                    /* wait until a key is pressed */
  1830.                    waitkey();
  1831.                 }
  1832.  
  1833.  
  1834.  
  1835.  
  1836. E
  1837.      Unicorn Library Documentation  3.1                         page 173
  1838.  
  1839.      __________________________________________________________________
  1840.  
  1841.                                wbackclr
  1842.  
  1843. F
  1844.      Sets the background color / pallet / border color.  Used with
  1845.      windows.
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.      Call:  wbackclr(color, tag);
  1853.  
  1854.      Where:
  1855.                color = color desired
  1856.                tag   = 0 for background color
  1857.                        1 - palette for graphics modes
  1858.                        1 - border color for text modes
  1859.  
  1860.  
  1861.      Example:     main()
  1862.                   {
  1863.                      wbackclr(1, 0); /* set the background to blue */
  1864.                   }
  1865.  
  1866.  
  1867.  
  1868. E
  1869.      Unicorn Library Documentation  3.1                         page 174
  1870.  
  1871.      __________________________________________________________________
  1872.  
  1873.                                wbdot
  1874.  
  1875. F
  1876.      Window BIOS call to set a dot on the graphics screen.
  1877.  
  1878.  
  1879.  
  1880.  
  1881.      Call:  wbdot(color, row, col);
  1882.  
  1883.      Where:
  1884.                color = color desired
  1885.             row   = row for desired dot
  1886.                col   = col for desired dot
  1887.  
  1888.  
  1889.      Example:     main()
  1890.                   {
  1891.                      wbdot(3, 30, 50);
  1892.                   }
  1893.  
  1894.  
  1895.  
  1896. E
  1897.      Unicorn Library Documentation  3.1                         page 175
  1898.  
  1899.      __________________________________________________________________
  1900.  
  1901.                                   wco
  1902.  
  1903. F     Prints a character only on the screen.  In the graphics modes a
  1904.      color may be specified.
  1905.  
  1906.  
  1907.  
  1908.  
  1909.      Call:    wco(char, color);
  1910.  
  1911.               char   =  character to print
  1912.               color  =  color to use, ignored in text modes
  1913.  
  1914.  
  1915.  
  1916.  
  1917.      Example:     main()
  1918.                   {
  1919.                      /* prints the character 'W' */
  1920.                      wco('W', 4);
  1921.                      waitkey();  /* wait until a key is pressed */
  1922.                      sm(4);     /*  set the graphics mode */
  1923.                      /* print a 'W' in red on the graphics screen */
  1924.                      wco('W', 4);
  1925.                    }
  1926.  
  1927.  
  1928.  
  1929. E
  1930.      Unicorn Library Documentation  3.1                         page 176
  1931.  
  1932.      __________________________________________________________________
  1933.  
  1934.                                wgbdot
  1935.  
  1936. F
  1937.      Window BIOS call to get the dot color on the graphics screen.
  1938.  
  1939.  
  1940.  
  1941.  
  1942.      Call:  wgbdot(dummy, row, col);
  1943.  
  1944.      Where:
  1945.                dummy = unused parameter
  1946.             row   = row for desired dot
  1947.                col   = col for desired dot
  1948.  
  1949.  
  1950.      Example:     main()
  1951.                   {
  1952.                      int a;
  1953.                      a = wgbdot(3, 30, 50);
  1954.                   }
  1955.  
  1956.  
  1957.  
  1958. E
  1959.      Unicorn Library Documentation  3.1                         page 177
  1960.  
  1961.      __________________________________________________________________
  1962.  
  1963.                                wgetca
  1964.  
  1965. F
  1966.      Window call to read a character and attribute from the screen
  1967.  
  1968.  
  1969.      Call:  wgetca(page);
  1970.  
  1971.      Where:
  1972.             page = the desired page to be read
  1973.  
  1974.      Example:     main()
  1975.                   {
  1976.                      int a;
  1977.                      a = wgetca(0);
  1978.                   }
  1979.  
  1980.  
  1981.  
  1982. E
  1983.      Unicorn Library Documentation  3.1                         page 178
  1984.  
  1985.      __________________________________________________________________
  1986.  
  1987.                                wgetcurp
  1988.  
  1989. F
  1990.      Window call to get the current cursor postion.  Returns
  1991.      (256*row + column).
  1992.  
  1993.  
  1994.  
  1995.      Call:  wgetcurp(page);
  1996.  
  1997.      Where:
  1998.             page = the desired page to be read
  1999.  
  2000.      Example:     main()
  2001.                   {
  2002.                      int a;
  2003.                      a = wgetcurp(0);
  2004.                   }
  2005.  
  2006.  
  2007.  
  2008. E
  2009.      Unicorn Library Documentation  3.1                         page 179
  2010.  
  2011.      __________________________________________________________________
  2012.  
  2013.                                wgetpen
  2014.  
  2015. F
  2016.      Returns the lightpen status.  Used as a part of windowing functions.
  2017.  
  2018.  
  2019.  
  2020.      Call:  wgetpen(buffer);
  2021.  
  2022.      Where:
  2023.             buffer = a 4 bit integer.  Row and column positions are
  2024.                      stored in buffer.
  2025.  
  2026.      Return:
  2027.             0 if pen not triggered or 1 if it was.
  2028.  
  2029.      Example:     main()
  2030.                   {
  2031.                      int a;
  2032.                      int buffer[4];
  2033.  
  2034.                      a = wgetpen(buffer);
  2035.                   }
  2036.  
  2037.  
  2038.  
  2039. E
  2040.      Unicorn Library Documentation  3.1                         page 180
  2041.  
  2042.      __________________________________________________________________
  2043.  
  2044.                                wnaddrow
  2045.  
  2046. F
  2047.      Inserts a row of blanks by scrolling the lower portion of a window
  2048.      DOWN.  The current cursor row is inserted.
  2049.  
  2050.  
  2051.      Call:  wnaddrow();
  2052.  
  2053.  
  2054.  
  2055.      Example:     main()
  2056.                   {
  2057.                     wnaddrow();
  2058.                   }
  2059.  
  2060.  
  2061.  
  2062. E
  2063.      Unicorn Library Documentation  3.1                         page 181
  2064.  
  2065.      __________________________________________________________________
  2066.  
  2067.                                wnbndry
  2068.  
  2069. F
  2070.      Checks to see if the cursor is within the defined area of a window.
  2071.      Returns a code indicating the cursor position status.
  2072.  
  2073.      Call:  wnbndry(wn);
  2074.  
  2075.  
  2076.  
  2077.      Example:     main()
  2078.                   {
  2079.                     wnbndry(wn);
  2080.                   }
  2081.  
  2082.  
  2083.  
  2084. E
  2085.      Unicorn Library Documentation  3.1                         page 182
  2086.  
  2087.      __________________________________________________________________
  2088.  
  2089.                                wnceol
  2090.  
  2091. F
  2092.     Clear the window to the end of the current line.
  2093.  
  2094.  
  2095.  
  2096.      Call:  wnceol(wn);
  2097.  
  2098.  
  2099.  
  2100.      Example:     main()
  2101.                   {
  2102.                     wnceol();
  2103.                   }
  2104.  
  2105.  
  2106.  
  2107. E
  2108.      Unicorn Library Documentation  3.1                         page 183
  2109.  
  2110.      __________________________________________________________________
  2111.  
  2112.                                wnclose
  2113.  
  2114. F
  2115.      Erase the window at the current window control block.  If overlapping
  2116.      windows are used then this must be the top window.
  2117.  
  2118.  
  2119.      Call:  wnclose(wn);
  2120.  
  2121.  
  2122.  
  2123.      Example:     main()
  2124.                   {
  2125.                     wnclose(wn);
  2126.                   }
  2127.  
  2128.  
  2129.  
  2130. E
  2131.      Unicorn Library Documentation  3.1                         page 184
  2132.  
  2133.      __________________________________________________________________
  2134.  
  2135.                                wncls
  2136.  
  2137. F
  2138.      Clear the current window and home the cursor for the window.
  2139. `
  2140.  
  2141.      Call:  wncls(wn);
  2142.  
  2143.  
  2144.  
  2145.      Example:     main()
  2146.                   {
  2147.                     wncls(wn);
  2148.                   }
  2149.  
  2150.  
  2151.  
  2152. E
  2153.      Unicorn Library Documentation  3.1                         page 185
  2154.  
  2155.      __________________________________________________________________
  2156.  
  2157.                                wncur
  2158.  
  2159. F
  2160.      Provides cursor movement controls for the windows.  Primarily for
  2161.      internal use but may be user accessed to provide for the building
  2162.      of additional window functions.
  2163.  
  2164.  
  2165.      Call:  wncur(wn, c);
  2166.  
  2167.      Where:
  2168.            wn  = the current window pointer
  2169.            c   = the cursor control keystroke
  2170.  
  2171.  
  2172.      Example:     main()
  2173.                   {
  2174.                     wncur(wn, c);
  2175.                   }
  2176.  
  2177.  
  2178.  
  2179. E
  2180.      Unicorn Library Documentation  3.1                         page 186
  2181.  
  2182.      __________________________________________________________________
  2183.  
  2184.                                wndelch
  2185.  
  2186. F
  2187.      Deletes the character at the current window cursor position.
  2188.  
  2189.      Call:  wndelch(wn);
  2190.  
  2191.  
  2192.  
  2193.      Example:     main()
  2194.                   {
  2195.                     wndelch(wn);
  2196.                   }
  2197.  
  2198.  
  2199.  
  2200. E
  2201.      Unicorn Library Documentation  3.1                         page 187
  2202.  
  2203.      __________________________________________________________________
  2204.  
  2205.                                wndelrow
  2206.  
  2207. F
  2208.      Deletes a row by scrolling the lower portion of a window UP and
  2209.      inserting a row of blanks at the bottom of the window.    
  2210.  
  2211.  
  2212.  
  2213.      Call:  wndelrow(wn);
  2214.  
  2215.  
  2216.  
  2217.      Example:     main()
  2218.                   {
  2219.                     wndelrow(wn);
  2220.                   }
  2221.  
  2222.  
  2223.  
  2224. E
  2225.      Unicorn Library Documentation  3.1                         page 188
  2226.  
  2227.      __________________________________________________________________
  2228.  
  2229.                                wngcurp
  2230.  
  2231. F
  2232.      Returns the relative window cursor position.  Row = wngcurp() & 0xFF
  2233.      and Col = wngcurp >> 8.  The home position for a window cursor is
  2234.      1, 1.
  2235.  
  2236.  
  2237.  
  2238.      Call:  wngcurp(wn);
  2239.  
  2240.  
  2241.  
  2242.      Example:     main()
  2243.                   {
  2244.                     wngcurp(wn);
  2245.                   }
  2246.  
  2247.  
  2248.  
  2249. E
  2250.      Unicorn Library Documentation  3.1                         page 189
  2251.  
  2252.      __________________________________________________________________
  2253.  
  2254.                                wngetca
  2255.  
  2256. F
  2257.     Returns the character and attribute at row, column.
  2258.  
  2259.  
  2260.      Call:  wngetca(row, col);
  2261.  
  2262.  
  2263.  
  2264.      Example:     main()
  2265.                   {
  2266.                     int a.;
  2267.                     a = wngetca(5, 10);
  2268.                   }
  2269.  
  2270.  
  2271.  
  2272. E
  2273.      Unicorn Library Documentation  3.1                         page 190
  2274.  
  2275.      __________________________________________________________________
  2276.  
  2277.                                wngetch
  2278.  
  2279. F
  2280.     Returns the character at the window cursor location or a boundry
  2281.     code if the cursor is outside the window.
  2282.  
  2283.      Call:  wngetch(wn);
  2284.  
  2285.  
  2286.  
  2287.      Example:     main()
  2288.                   {
  2289.                     int a.;
  2290.                     a = wngetch(5, 10);
  2291.                   }
  2292.  
  2293.  
  2294.  
  2295. E
  2296.      Unicorn Library Documentation  3.1                         page 191
  2297.  
  2298.      __________________________________________________________________
  2299.  
  2300.                                wngets
  2301.  
  2302. F
  2303.      Get the string at the current window cursor location.  The number
  2304.      of characters to place in the string may be specified.  Reaching
  2305.      this number or the end of the window terminates the function.  The
  2306.      number of characters placed in the string is returned.
  2307.  
  2308.  
  2309.  
  2310.      Call:  wngets(wn, string, count);
  2311.  
  2312.      Where:
  2313.            wn     = a pointer to the window
  2314.            string = the string to stuff with window characters
  2315.            count  = max length to be returned
  2316.  
  2317.  
  2318.  
  2319.      Example:     main()
  2320.                   {
  2321.                     int a.;
  2322.                     char b[11];
  2323.                     a = wngets(wn, b, 10);
  2324.                   }
  2325.  
  2326.  
  2327.  
  2328. E
  2329.      Unicorn Library Documentation  3.1                         page 192
  2330.  
  2331.      __________________________________________________________________
  2332.  
  2333.                                wngetstr
  2334.  
  2335. F
  2336.      This is very similar to the previous function except that it stuffs
  2337.      a user typed string rather than one pre-existing in the window
  2338.  
  2339.  
  2340.      Call:  wngetstr(wn, string, count);
  2341.  
  2342.      Where:
  2343.            wn     = a pointer to the window
  2344.            string = the string to stuff with window characters
  2345.            count  = max length to be returned
  2346.  
  2347.  
  2348.  
  2349.      Example:     main()
  2350.                   {
  2351.                     int a.;
  2352.                     char b[11];
  2353.                     a = wngetstr(wn, b, 10);
  2354.                   }
  2355.  
  2356.  
  2357.  
  2358. E
  2359.      Unicorn Library Documentation  3.1                         page 193
  2360.  
  2361.      __________________________________________________________________
  2362.  
  2363.                                wninsch
  2364.  
  2365. F
  2366.      Inserts a character at the current widow cursor position.
  2367.  
  2368.      Call:  wninsch(wn, ch);
  2369.  
  2370.  
  2371.      Where:
  2372.            wn     = a pointer to the window
  2373.            ch     = the character to be inserted
  2374.  
  2375.  
  2376.      Example:     main()
  2377.                   {
  2378.                     int a.;
  2379.                     char b;
  2380.                     b = 'a';
  2381.                     a = wngetstr(wn, b);
  2382.                   }
  2383.  
  2384.  
  2385.  
  2386. Unicorn 1 Documentation  3.1                                      page 194
  2387.  
  2388. __________________________________________________________________________
  2389.  
  2390.  
  2391.                               wnoise
  2392.  
  2393.  
  2394.  
  2395. Sounds a white noise signal that is between two user selected frequencies.
  2396.  
  2397.  
  2398.  
  2399.  
  2400.  
  2401. Call:         wnoise(low, high, duration);
  2402.  
  2403.               low      = lowest frequency to use
  2404.               high     = highest frequency to use
  2405.               duration = time factor, larger number is longer time
  2406.  
  2407.  
  2408.  
  2409.  
  2410. Example:      main()
  2411.               {
  2412.                  wnoise(100, 1000, 100); /* white noise between 100 & 1000 */
  2413.               }
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419. Unicorn 1 Documentation  3.1                                      page 195
  2420.  
  2421. __________________________________________________________________________
  2422.  
  2423.  
  2424.                               wnopen
  2425.  
  2426.  
  2427.     Open a window and store the underlying screen data.  The border is in
  2428.     a separate structure.
  2429.  
  2430.  
  2431.  
  2432.  
  2433.      Call:         wnopen(wbd, row, col, width, height, attribute);
  2434.  
  2435.      Where:
  2436.             wbd        = a border pointer
  2437.             row        = upper left row for corner
  2438.             col        = upper left col for corner
  2439.             width      = width of window
  2440.             height     = height of window
  2441.             attribute  = attribute for window
  2442.  
  2443.  
  2444.  
  2445.  
  2446. Example:      main()
  2447.               {
  2448.                  WINDOW *wnopen(wbd, row, col, width, height, attribute);
  2449.               }
  2450.  
  2451.  
  2452.  
  2453.  
  2454.  
  2455.      Unicorn 1 Documentation  3.1                                page 196
  2456.      ____________________________________________________________________
  2457.  
  2458.  
  2459.                                  wnpchar
  2460.  
  2461.      Print a character as is at the current cursor window location.  Uses
  2462.      cx and cy in the widow control structure block.
  2463.  
  2464.  
  2465.  
  2466.      Call:    wnpchar(wn, ch);
  2467.  
  2468.      Where:
  2469.              wn  = window pointer
  2470.              ch  = character to print
  2471.  
  2472.  
  2473.  
  2474.  
  2475. Example:      main()
  2476.               {
  2477.                  wnpchar(wn, ch);
  2478.               }
  2479.  
  2480.  
  2481.  
  2482.  
  2483.  
  2484.      Unicorn 1 Documentation  3.1                                page 197
  2485.      ____________________________________________________________________
  2486.  
  2487.  
  2488.                                  wnprinta
  2489.  
  2490.      Very similar to wnprintf except that this function allows the user
  2491.      to specify a row an column position for the print.
  2492.  
  2493.  
  2494.      Call:    wnprinta(row, col, wn, format_string, parameter_list);
  2495.  
  2496.  
  2497.      Where:
  2498.              row            =  row to start at
  2499.              col            =  col to start at
  2500.              wn             =  window pointer
  2501.              format_string  =  similar to printf
  2502.              parameter list =  maximum of 14
  2503.  
  2504.  
  2505.  
  2506.  
  2507. Example:      main()
  2508.               {
  2509.                   wnprinta(row, col, wn, format_string, parameter_list);
  2510.               }
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.      Unicorn 1 Documentation  3.1                                page 198
  2517.      ____________________________________________________________________
  2518.  
  2519.  
  2520.                                  wnprintf
  2521.  
  2522.     Similar to printf but works inside a window.
  2523.  
  2524.  
  2525.      Call:    wnprintf(wn, format_string, parameter_list);
  2526.  
  2527.  
  2528.      Where:
  2529.              wn             =  window pointer
  2530.              format_string  =  similar to printf
  2531.              parameter list =  maximum of 14
  2532.  
  2533.  
  2534.  
  2535.  
  2536. Example:      main()
  2537.               {
  2538.                   wnprintf(wn, format_string, parameter_list);
  2539.               }
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.      Unicorn 1 Documentation  3.1                                page 199
  2546.      ____________________________________________________________________
  2547.  
  2548.  
  2549.                                  wnputch
  2550.  
  2551.     Print a character inside a window using the cursor position stored
  2552.     in the window structure.  Processes CR, LF, BS, TAB and DEL keys.
  2553.  
  2554.      Call:  wnputch(wn, ch);
  2555.  
  2556.  
  2557.      Where:
  2558.              wn  =  window pointer
  2559.              ch  =  character to print
  2560.  
  2561.  
  2562.  
  2563. Example:      main()
  2564.               {
  2565.                   wnputch(wn, 'a');
  2566.               }
  2567.  
  2568.  
  2569.  
  2570.  
  2571.  
  2572.      Unicorn 1 Documentation  3.1                                page 200
  2573.      ____________________________________________________________________
  2574.  
  2575.  
  2576.                                  wnputs
  2577.  
  2578.     Print a string inside a window using the cursor position stored
  2579.     in the window structure.  Processes CR, LF, BS, TAB and DEL keys.
  2580.  
  2581.      Call:  wnputs(wn, string);
  2582.  
  2583.  
  2584.      Where:
  2585.              wn      =  window pointer
  2586.              string  =  string to print
  2587.  
  2588.  
  2589.  
  2590. Example:      main()
  2591.               {
  2592.                   wnputs(wn, "Testing");
  2593.               }
  2594.  
  2595.  
  2596.  
  2597.  
  2598.  
  2599.      Unicorn 1 Documentation  3.1                                page 201
  2600.      ____________________________________________________________________
  2601.  
  2602.  
  2603.                                  wnscroll
  2604.  
  2605.      Scrolls the window up one line.
  2606.  
  2607.  
  2608.      Call:  wnscroll(wn);
  2609.  
  2610.  
  2611.      Where:
  2612.              wn      =  window pointer
  2613.  
  2614.  
  2615.  
  2616. Example:      main()
  2617.               {
  2618.                   wnscroll(wn);
  2619.               }
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.      Unicorn 1 Documentation  3.1                                page 202
  2626.      ____________________________________________________________________
  2627.  
  2628.  
  2629.                                  wnscurp
  2630.  
  2631.  
  2632.      Sets the relative window cursor to the specified row and column.  If
  2633.      either is zero the cursor is moved in the given axis the number of
  2634.      spaces specified.  Positive is right or down.  Home position is 1, 1.
  2635.  
  2636.  
  2637.      Call:  wnscurp(wn, row, col);
  2638.  
  2639.  
  2640.      Where:
  2641.              wn      =  window pointer
  2642.              row     =  new cursor row
  2643.              col     =  new cursor column
  2644.  
  2645.  
  2646.  
  2647. Example:      main()
  2648.               {
  2649.                   wnscurp(wn, 3, 7);
  2650.               }
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.      Unicorn 1 Documentation  3.1                                page 203
  2657.      ____________________________________________________________________
  2658.  
  2659.  
  2660.                                  wnstrptr
  2661.  
  2662.  
  2663.     Prints a string inside a window using the stored cursor position in
  2664.     the window structure control block.
  2665.  
  2666.      Call:  wnstrptr(wn, string);
  2667.  
  2668.  
  2669.      Where:
  2670.              wn      =  window pointer
  2671.              string  =  string to be printed
  2672.  
  2673.  
  2674. Example:      main()
  2675.               {
  2676.                   wnstrptr(wn, string);
  2677.               }
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.      Unicorn 1 Documentation  3.1                                page 204
  2684.      ____________________________________________________________________
  2685.  
  2686.  
  2687.                                  wnwac
  2688.  
  2689.  
  2690.      Write a character and attribute to a specific row and column on the
  2691.      screen.  The attribute must be located in the high byte of the
  2692.      character.
  2693.  
  2694.      Call:  wnwac(row, col, ch);
  2695.  
  2696.  
  2697.      Where:
  2698.             row = desired row
  2699.             col = desired column
  2700.             ch  = character to print
  2701.  
  2702.  
  2703. Example:      main()
  2704.               {
  2705.                   wnwac(rowm col, ch);
  2706.               }
  2707.  
  2708.  
  2709.  
  2710.  
  2711.  
  2712.      Unicorn 1 Documentation  3.1                                page 205
  2713.      ____________________________________________________________________
  2714.  
  2715.  
  2716.                                  wscrldn
  2717.  
  2718.  
  2719.       Scroll a window down.
  2720.  
  2721.  
  2722.      Call:  wscrldn(wn, count, attribute);
  2723.  
  2724.  
  2725.      Where:
  2726.             wn        = pointer to window
  2727.             count     = number of rows to scroll
  2728.             attribute = attribute to place on new rows
  2729.  
  2730.  
  2731. Example:      main()
  2732.               {
  2733.                   wscrldn(wn, count, attribute);
  2734.               }
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.      Unicorn 1 Documentation  3.1                                page 206
  2741.      ____________________________________________________________________
  2742.  
  2743.  
  2744.                                  wscrlup
  2745.  
  2746.  
  2747.       Scroll a window up.
  2748.  
  2749.  
  2750.      Call:  wscrlup(wn, count, attribute);
  2751.  
  2752.  
  2753.      Where:
  2754.             wn        = pointer to window
  2755.             count     = number of rows to scroll
  2756.             attribute = attribute to place on new rows
  2757.  
  2758.  
  2759. Example:      main()
  2760.               {
  2761.                   wscrlup(wn, count, attribute);
  2762.               }
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.      Unicorn 1 Documentation  3.1                                page 207
  2769.      ____________________________________________________________________
  2770.  
  2771.  
  2772.                                  wsetcurp
  2773.  
  2774.  
  2775.      Set the cursor position to a specified row, col.
  2776.  
  2777.      Call:  wsetcurp(row, col, page);
  2778.  
  2779.  
  2780.      Where:
  2781.            row   = desired row
  2782.            col   = desired col
  2783.            page  = desired page
  2784.  
  2785.  
  2786.      Example:      main()
  2787.                    {
  2788.                       wsetcurp(4, 7);
  2789.                    }
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.      Unicorn 1 Documentation  3.1                                page 208
  2796.      ____________________________________________________________________
  2797.  
  2798.  
  2799.                                  wsetcurt
  2800.  
  2801.  
  2802.      Set the cursor type by defining a start and end row for the cursor.
  2803.  
  2804.      Call:  wsetcurt(start, end);
  2805.  
  2806.  
  2807.      Where:
  2808.             start = starting line for cursor.
  2809.             end   = ending line for cursor.
  2810.  
  2811. Example:      main()
  2812.               {
  2813.                   wsetcurt(4, 7);
  2814.               }
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.      Unicorn 1 Documentation  3.1                                page 209
  2821.      ____________________________________________________________________
  2822.  
  2823.  
  2824.                                  wsetpage
  2825.  
  2826.  
  2827.      Set the page.
  2828.  
  2829.      Call:  wsetpage(page);
  2830.  
  2831.  
  2832.      Where:
  2833.             page = desired video page
  2834.  
  2835.  
  2836.  
  2837.  
  2838. Example:      main()
  2839.               {
  2840.                   wsetpage(0);
  2841.               }
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849.  
  2850. E
  2851.      Unicorn Library Documentation  3.1                         page 210
  2852.  
  2853.      __________________________________________________________________
  2854.  
  2855.                                 wtty
  2856.  
  2857. F     Prints a character and attribute on the screen.  It advances the
  2858.      cursor and responds to control characters.
  2859.  
  2860.  
  2861.  
  2862.  
  2863.  
  2864.  
  2865.      Call:   wtty(attribute, character);
  2866.  
  2867.              attribute  =  attribute to use in printing character
  2868.              char       =  character to be printed
  2869.  
  2870.              attribute byte is formed according to below bit definitions
  2871.  
  2872.              foreground;
  2873.                         bit 0 = blue
  2874.                         bit 1 = green
  2875.                         bit 2 = red
  2876.                         bit 3 = intensity
  2877.              background;
  2878.                         bit 4 = blue
  2879.                         bit 5 = green
  2880.                         bit 6 = red
  2881.                         bit 7 = blink
  2882.  
  2883.  
  2884.  
  2885.      Example:   main()
  2886.                 {
  2887.                    /*  print the character 't' with a blue background
  2888.                        using bright red character color.             */
  2889.                    wtty(28, 't');
  2890.                 }
  2891.  
  2892.  
  2893.  
  2894.      Unicorn 1 Documentation  3.1                                page 211
  2895.      ____________________________________________________________________
  2896.  
  2897.  
  2898.                                  wwac
  2899.  
  2900.     Write the character and attribute at the current window cursor location.
  2901.  
  2902.  
  2903.  
  2904.     Call:   wwac(ch, page, count);
  2905.  
  2906.     Where:  ch    = character to write
  2907.             page  = video page
  2908.             count = number of times to write the character
  2909.  
  2910.  
  2911.  
  2912.      Example:   main()
  2913.                 {
  2914.                   wwac(ch, page, count);
  2915.                 }
  2916.  
  2917.      Unicorn 1 Documentation  3.1                                page 212
  2918.      ____________________________________________________________________
  2919.  
  2920.  
  2921.                                  wwco
  2922.  
  2923.     Write the character only at the current window cursor location.
  2924.  
  2925.  
  2926.  
  2927.     Call:   wwco(ch, page, count);
  2928.  
  2929.     Where:  ch    = character to write
  2930.             page  = video page
  2931.             count = number of times to write the character
  2932.  
  2933.  
  2934.  
  2935.      Example:   main()
  2936.                 {
  2937.                   wwac(ch, page, count);
  2938.                 }
  2939.  
  2940.