home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / superh / super.h
Encoding:
Text File  |  1985-11-19  |  2.1 KB  |  117 lines

  1. /****************************************
  2.  *    Super Soft Library Version 1.0    *
  3.  *    Written by, Robert L. Shady       *
  4.  *    Copyright (C)1986 Super Soft.     *
  5.  ****************************************/
  6.  
  7. /*************************************
  8.  * Move to cursor position specified *
  9.  *************************************/
  10. moveto(row,col)
  11. int   row, col;
  12. {
  13.    row = row + 32;
  14.    col = col + 32;
  15.    printf("%cY%c%c",27,row,col);
  16. }
  17.  
  18. /*************************
  19.  * Turn on inverse vidio *
  20.  *************************/
  21. inverse()
  22. {
  23.    printf("%cp", 27);
  24. }
  25.  
  26. /**************************
  27.  * Turn off inverse video *
  28.  **************************/
  29. normal()
  30. {
  31.    printf("%cq",27);
  32. }
  33.  
  34. /******************************
  35.  * clear screen & home cursor *
  36.  ******************************/
  37. clearscreen()
  38. {
  39.    printf("%cE",27);
  40. }
  41.  
  42. /*******************
  43.  * Home the cursor *
  44.  *******************/
  45. homecursor()
  46. {
  47.    printf("%cH",27);
  48. }
  49.  
  50. /*******************************
  51.  * Delete current line of text *
  52.  *******************************/
  53. deleteline()
  54. {
  55.    printf("%cM",27);
  56. }
  57.  
  58. /*************************************
  59.  * Insert a line before current line *
  60.  *************************************/
  61. insertline()
  62. {
  63.    printf("%cL",27);
  64. }
  65.  
  66. /***********************
  67.  * Delete rest of line *
  68.  ***********************/
  69. deleterol()
  70. {
  71.    printf("%cK",27);
  72. }
  73.  
  74. /**************************
  75.  * Clear the current line *
  76.  **************************/
  77. clearline()
  78. {
  79.    printf("%cl",27);
  80. }
  81.  
  82. /*********************
  83.  * Enable the cursor *
  84.  *********************/
  85. enablecursor()
  86. {
  87.    printf("%ce",27);
  88. }
  89.  
  90. /**********************
  91.  * Disable the cursor *
  92.  **********************/
  93. disablecursor()
  94. {
  95.    printf("%cf",27);
  96. }
  97.  
  98. /**************************
  99.  * Change charactor color *
  100.  **************************/
  101. charcolor(color)
  102. int     color;
  103. {
  104.    printf("%cc%d",27,color);
  105. }
  106.  
  107. /***************************
  108.  * Change background color *
  109.  ***************************/
  110. backcolor(color)
  111. int     color;
  112. {
  113.    printf("%cb%d",27,color);
  114. }
  115.  
  116.