home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / screen / crt_disk / crt_disk.h < prev    next >
Encoding:
Text File  |  1985-02-02  |  1.5 KB  |  61 lines

  1. /*-----------------------------------------------------------------------------
  2.  * FILE IDENTIFICATION
  3.  *
  4.  *    Name:        crt_disk.h
  5.  *    Use:        Special header file for Public Domain crt_disk routines
  6.  *    Programmer:    Kevin Rosenberg
  7.  *    Address:    2515 E. 16th St
  8.  *            Newport Beach, CA 92663
  9.  *
  10.  *---------------------------------------------------------------------------*/
  11.  
  12. #undef  LATTICE
  13. #define LATTICE
  14.  
  15. #define TRUE    1
  16. #define FALSE    0
  17.  
  18. #define INTERNAL_FUNC  static
  19.  
  20. #define ERR_WARNING    0
  21. #define ERR_SEVERE    1
  22. #define ERR_FATAL    2
  23.  
  24. #define CFLAG_8086 0x0001        /* 8086 carry flag position */
  25.  
  26. /*----------------------------------------------------------------------*/
  27.  
  28. /* codes for open command */
  29.  
  30. #ifdef LATTICE
  31. #define OPEN_RDONLY  0x8000        /* Lattice codes for binary i/o */
  32. #define OPEN_WRONLY  0x8001
  33. #define OPEN_RDWR    0x8002
  34. #else
  35. #define OPEN_RDONLY  0            /* other system use standard codes */
  36. #define OPEN_WRONLY  1            /* for binary */
  37. #define OPEN_RDWR    2
  38. #endif
  39.  
  40. /*----------------------------------------------------------------------*/
  41.  
  42. /* crt modes */
  43.  
  44. #define GM_TEXT40    0
  45. #define GM_TEXT80    2
  46. #define GM_320x200   4
  47. #define GM_640x200   6
  48. #define GM_MONOTEXT  7
  49. #define GM_E320x200 13
  50. #define GM_E640x200 14
  51. #define GM_MONOGRF  15
  52. #define GM_ENHANCED 16
  53.  
  54. #define GM_TEXT         -1
  55. #define GM_HIGHRES   -2
  56. #define GM_MEDRES    -3
  57.  
  58. #define CRT_MONO     0
  59. #define CRT_COLOR    1
  60. #define CRT_ENHANCED 2
  61.