home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / FMT.H < prev    next >
Text File  |  1995-12-11  |  5KB  |  85 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   Fmt.h                                                                   */
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*   Screen formatting related macros and constants.                         */
  7. /*                                                                           */
  8. /* History:                                                                  */
  9. /*                                                                           */
  10. /*   02/08/91 Creation of 32-bit SD86, from 16-bit version.                  */
  11. /*                                                                           */
  12. /*...Release 1.01 (04/03/92)                                                 */
  13. /*...                                                                        */
  14. /*... 05/08/92  701   Srinivas  Cua Interface.                               */
  15. /*****************************************************************************/
  16. #define MAXSRCCOLS   23          /* max # of cols of source code on ASM view */
  17. #define ACTIVESHADE  0xB1        /* shading char for active threads          */
  18. #define ACTCALLSHADE 0xB0        /* shading char for the active call chain   */
  19. #define ACHAR_NULL   0xF9        /* ASCII code point for null chars          */
  20. #define ACHAR_NONA   0xFA        /* ASCII code point for non-ASCII chars     */
  21.  
  22. /*****************************************************************************/
  23. /*                 LOGICAL DISPLAY SCREEN ATTRIBUTES                         */
  24. /*****************************************************************************/
  25. #define vaProgram   (UCHAR)1            /* program line attribute            */
  26. #define vaBptOk     (UCHAR)2            /* breakpoint allowed on line        */
  27. #define vaBptOn     (UCHAR)3            /* breakpoint active on line         */
  28. #define vaXline     (UCHAR)4            /* executing line, no brkpoint active*/
  29. #define vaXlineOn   (UCHAR)5            /* executing line, breakpoint active */
  30. #define vaMenuBar   (UCHAR)6            /* menu bar                          */
  31. #define vaMenuCsr   (UCHAR)7            /* menu bar cursor                   */
  32. #define vaStgExp    (UCHAR)8            /* storage expression                */
  33. #define vaStgVal    (UCHAR)9            /* storage values                    */
  34. #define vaRegWind  (UCHAR)10            /* register window                   */
  35. #define vaPrompt   (UCHAR)11            /* menu prompts                      */
  36. #define vaError    (UCHAR)12            /* error messages                    */
  37. #define vaInfo     (UCHAR)13            /* file and position                 */
  38. #define vaHelp     (UCHAR)14            /* help pannels                      */
  39. #define vaStgPro   (UCHAR)15            /* storage expression prompts        */
  40. #define vaClear    (UCHAR)16            /* clear screen on exit              */
  41. #define vaStgStat  (UCHAR)17            /* data window status line           */
  42. #define vaMxdSrc   (UCHAR)18            /* asm window source lines           */
  43. #define vaMenuSel  (UCHAR)19            /* Menubar item select char highlight*/
  44. #define vaCallStk  (UCHAR)20            /* Call stack.                       */
  45. #define vaCallSel  (UCHAR)21            /* Call stack select.                */
  46. #define vaRegTogg  (UCHAR)22            /* Toggle registers, highlite value  */
  47. #define vaTemp1    (UCHAR)23            /*                                   */
  48. #define vaBadAct   (UCHAR)24            /* Non selectable item.           701*/
  49. #define vaBadSel   (UCHAR)25            /* Non selectable item highlight. 701*/
  50. #define vaShadow   (UCHAR)26            /* shadow stuff around pulldowns. 701*/
  51.  
  52. /*****************************************************************************/
  53. /*                    HARDWARE COLOR ATTRIBUTE VALUES                        */
  54. /*****************************************************************************/
  55. #define FG_black   0x00
  56. #define FG_blue    0x01
  57. #define FG_green   0x02
  58. #define FG_cyan    0x03
  59. #define FG_red     0x04
  60. #define FG_magenta 0x05
  61. #define FG_brown   0x06
  62. #define FG_white   0x07
  63. #define FG_light   0x08
  64. #define BG_black   0x00
  65. #define BG_blue    0x10
  66. #define BG_green   0x20
  67. #define BG_cyan    0x30
  68. #define BG_red     0x40
  69. #define BG_magenta 0x50
  70. #define BG_brown   0x60
  71. #define BG_white   0x70
  72. #define FG_yellow  ( FG_light | FG_brown )
  73.  
  74. /*****************************************************************************/
  75. /*               HARDWARE MONOCHROME COLOR ATTRIBUTE VALUES                  */
  76. /*****************************************************************************/
  77. #define FG_uline     0x01
  78. #define FG_attribute 0x0F
  79.  
  80. /*****************************************************************************/
  81. /*               PUTRC FORMATING MACROS                                      */
  82. /*****************************************************************************/
  83. #define RepCnt(n) 0xFF,n                /* repeat count                      */
  84. #define Attrib(c) ( 0x80 | (c) )
  85.