home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / os-include.lha / os-include / devices / console.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  101 lines

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