home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / devices / console.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  2.1 KB  |  93 lines

  1. #ifndef DEVICES_CONSOLE_H
  2. #define DEVICES_CONSOLE_H
  3. /*
  4. **    $Filename: devices/console.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    Console device command definitions 
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef        EXEC_IO_H
  14. #include "exec/io.h"
  15. #endif
  16.  
  17. /****** Console commands ******/
  18. #define     CD_ASKKEYMAP        (CMD_NONSTD+0)
  19. #define     CD_SETKEYMAP        (CMD_NONSTD+1)
  20. #define     CD_ASKDEFAULTKEYMAP    (CMD_NONSTD+2)
  21. #define     CD_SETDEFAULTKEYMAP    (CMD_NONSTD+3)
  22.  
  23.  
  24. /****** SGR parameters ******/
  25.  
  26. #define SGR_PRIMARY       0
  27. #define SGR_BOLD       1
  28. #define SGR_ITALIC       3
  29. #define SGR_UNDERSCORE       4
  30. #define SGR_NEGATIVE       7
  31.  
  32. /* these names refer to the ANSI standard, not the implementation */
  33. #define SGR_BLACK       30
  34. #define SGR_RED           31
  35. #define SGR_GREEN       32
  36. #define SGR_YELLOW       33
  37. #define SGR_BLUE       34
  38. #define SGR_MAGENTA       35
  39. #define SGR_CYAN       36
  40. #define SGR_WHITE       37
  41. #define SGR_DEFAULT       39
  42.  
  43. #define SGR_BLACKBG       40
  44. #define SGR_REDBG       41
  45. #define SGR_GREENBG       42
  46. #define SGR_YELLOWBG       43
  47. #define SGR_BLUEBG       44
  48. #define SGR_MAGENTABG       45
  49. #define SGR_CYANBG       46
  50. #define SGR_WHITEBG       47
  51. #define SGR_DEFAULTBG       49
  52.  
  53. /* these names refer to the implementation, they are the preferred   */
  54. /* names for use with the Amiga console device.          */
  55. #define SGR_CLR0       30
  56. #define SGR_CLR1       31
  57. #define SGR_CLR2       32
  58. #define SGR_CLR3       33
  59. #define SGR_CLR4       34
  60. #define SGR_CLR5       35
  61. #define SGR_CLR6       36
  62. #define SGR_CLR7       37
  63.  
  64. #define SGR_CLR0BG       40
  65. #define SGR_CLR1BG       41
  66. #define SGR_CLR2BG       42
  67. #define SGR_CLR3BG       43
  68. #define SGR_CLR4BG       44
  69. #define SGR_CLR5BG       45
  70. #define SGR_CLR6BG       46
  71. #define SGR_CLR7BG       47
  72.  
  73.  
  74. /****** DSR parameters ******/
  75.  
  76. #define DSR_CPR           6
  77.  
  78. /****** CTC parameters ******/
  79. #define     CTC_HSETTAB       0
  80. #define     CTC_HCLRTAB       2
  81. #define     CTC_HCLRTABSALL   5
  82.  
  83. /******     TBC parameters ******/
  84. #define     TBC_HCLRTAB       0
  85. #define     TBC_HCLRTABSALL   3
  86.  
  87. /******     SM and RM parameters ******/
  88. #define     M_LNM      20       /* linefeed newline mode */
  89. #define     M_ASM      ">1"       /* auto scroll mode */
  90. #define     M_AWM      "?7"       /* auto wrap mode */
  91.  
  92. #endif    /* DEVICES_CONSOLE_H */
  93.