home *** CD-ROM | disk | FTP | other *** search
/ FreeWare Collection 3 / FreeSoftwareCollection3pd199x-jp.img / pao / ms_dos / cdplay / src / crt.h < prev    next >
Text File  |  1980-01-02  |  4KB  |  98 lines

  1. /******************************************************************************
  2. **
  3. **        CRT.LIB << MSC V5.1 >>
  4. **
  5. **        <HISTORY>
  6. **        1990.08.20 : CREATE
  7. **
  8. **        Programed by Y.HIRATA Nifty-ID (NAB03321)
  9. **
  10. ******************************************************************************/
  11.  
  12. #define        TRUE        1
  13. #define        FALSE        0
  14.  
  15. #define        INT_CRT        0x91
  16. #define        INT_BEEP    0x9E
  17.  
  18. #define        MAXLINE        24
  19. #define        MAXCLM        80
  20.  
  21. /******************************************************************************
  22.     CRT_cls : 全画面消去
  23. ******************************************************************************/
  24. unsigned CRT_cls( void ) ;
  25.  
  26. /******************************************************************************
  27.     CRT_cursw : カーソル表示制御
  28. ******************************************************************************/
  29. unsigned CRT_cursw( unsigned sw ) ;
  30. /*            sw  = 0 : カーソル表示しない,  = 1 : カーソル表示する。                    */
  31.  
  32. /******************************************************************************
  33.     CRT_setcur : カーソル位置設定
  34. ******************************************************************************/
  35. unsigned CRT_setcur( unsigned clm, unsigned line ) ;
  36. /*            clm   :  桁位置( 1 ~ )                                            */
  37. /*            line  :  行位置( 1 ~ )                                            */
  38.  
  39. /******************************************************************************
  40.     CRT_getcur : カーソル位置取得
  41. ******************************************************************************/
  42. unsigned CRT_getcur( unsigned *clm, unsigned *line ) ;
  43. /*            clm   :  桁位置( 1 ~ )                                            */
  44. /*            line  :  行位置( 1 ~ )                                            */
  45.  
  46. /******************************************************************************
  47.     CRT_setatr : アトリビュート設定
  48. ******************************************************************************/
  49. unsigned CRT_setatr( unsigned clm, unsigned line, unsigned char mode, unsigned short color ) ;
  50. /*            clm   :  桁位置( 1 ~ )                                            */
  51. /*            line  :  行位置( 1 ~ )                                            */
  52. /*            mode  :  表示属性                                                */
  53. /*            color :  色識別番号                                                */
  54.  
  55. /******************************************************************************
  56.     CRT_getatr : アトリビュート取得
  57. ******************************************************************************/
  58. unsigned CRT_getatr( unsigned clm, unsigned line, unsigned char *mode, unsigned short *color ) ;
  59. /*            clm   :  桁位置( 1 ~ )                                            */
  60. /*            line  :  行位置( 1 ~ )                                            */
  61. /*            mode  :  表示属性                                                */
  62. /*            color :  色識別番号                                                */
  63.  
  64. /******************************************************************************
  65.     CRT_defatr : デフォルトアトリビュートの設定
  66. ******************************************************************************/
  67. unsigned CRT_defatr( unsigned char mode, unsigned short color ) ;
  68. /*            mode  :  表示属性                                                */
  69. /*            color :  色識別番号                                                */
  70.  
  71. /******************************************************************************
  72.     CRT_scroll : 全画面スクロール(上方向へ1行分)
  73. ******************************************************************************/
  74. unsigned CRT_scrup( void ) ;
  75.  
  76. /******************************************************************************
  77.     CRT_putc : 1文字出力(デフォルトアトリビュート & シフトJISコード)
  78. ******************************************************************************/
  79. unsigned CRT_putc( char c ) ;
  80. /*            c  :  表示文字                                                    */
  81.  
  82. /******************************************************************************
  83.     CRT_puts : 文字列出力(デフォルトアトリビュート & シフトJISコード列)
  84. ******************************************************************************/
  85. unsigned CRT_puts( char *s ) ;
  86. /*            s  :  表示文字列                                                */
  87.  
  88. /*********************************  改行  ************************************/
  89. void CRT_cr( void ) ;
  90.  
  91. /******************************************************************************
  92.     CRT_beep : BEEP音を出す(カウンタ数,指定時間)
  93. ******************************************************************************/
  94. unsigned CRT_beep( unsigned short time, unsigned short count ) ;
  95. /*  time  - 時間   : 10ms 単位                                                */
  96. /*  count - カウンタ数 : 基本周波数(19200Hz) / 周波数(Hz)                        */
  97.  
  98.