home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / FC20C.ZIP / VIDEO.H < prev    next >
C/C++ Source or Header  |  1990-08-20  |  2KB  |  66 lines

  1. /*
  2.  * MICRO-C IBM/PC Video interface definitions
  3.  *
  4.  * Copyright 1989,1990 Dave Dunfield
  5.  * All rights reserved.
  6.  */
  7.  
  8. /* General keys */
  9. #define _KUA    0xff80            /* Up    arrow    */
  10. #define _KDA    0xff81            /* Down  arrow    */
  11. #define _KLA    0xff82            /* Left  arrow    */
  12. #define _KRA    0xff83            /* Right arrow    */
  13. #define _KPU    0xff84            /* PgUp            */
  14. #define _KPD    0xff85            /* PgDn            */
  15. #define _KHO    0xff86            /* Home            */
  16. #define _KEN    0xff87            /* End            */
  17. #define _KKP    0xff88            /* Keypad '+'    */
  18. #define _KKM    0xff89            /* Keypad '-'    */
  19. #define _KIN    0xff8a            /* Insert key    */
  20. #define _KDL    0xff8b            /* Delete key    */
  21. #define _KBS    0xff8c            /* Backspace    */
  22. /* Functions keys */
  23. #define _K1        0xff8d            /* Function 1    */
  24. #define _K2        0xff8e            /* Function 2    */
  25. #define _K3        0xff8f            /* Function 3    */
  26. #define _K4        0xff90            /* Function 4    */
  27. #define _K5        0xff91            /* Function 5    */
  28. #define _K6        0xff92            /* Function 6    */
  29. #define _K7        0xff93            /* Function 7    */
  30. #define _K8        0xff94            /* Function 8    */
  31. #define _K9        0xff95            /* Function 9    */
  32. #define _K10    0xff96            /* Function 10    */
  33. /* Special control keys */
  34. #define _CPU    0xff97            /* Control PgUp */
  35. #define _CPD    0xff98            /* Control PgDn */
  36. #define _CHO    0xff99            /* Control Home */
  37. #define _CEN    0xff9a            /* Control End  */
  38.  
  39. /*
  40.  * Video attribute bit definitions
  41.  */
  42. #define BLINK        0x80        /* Blinking video modes */
  43. #define INTENSE        0x08        /* Intensity control */
  44.  
  45. /*
  46.  * Color video attribute bits (Color adapters only).
  47.  * The individual RED, GREEN and BLUE bits may be combined
  48.  * to provide 8 distinct foreground and background colors.
  49.  * Note: INTENSE bit affects foreground colors only.
  50.  */
  51. #define F_RED        0x04        /* Foreground RED */
  52. #define F_GREEN        0x02        /* Foreground GREEN */
  53. #define F_BLUE        0x01        /* Foreground BLUE */
  54. #define B_RED        0x40        /* Background RED */
  55. #define B_GREEN        0x20        /* Background GREEN */
  56. #define B_BLUE        0x10        /* Background BLUE */
  57.  
  58. /* Monochrome video attributes (Monochrome adapters only) */
  59. #define    NORMAL        0x07        /* Monochrome normal video */
  60. #define REVERSE        0x70        /* Monochrome reverse video */
  61. #define UNDERLINE    0x01        /* Monochrome underline video */
  62.  
  63.     extern int        V_BASE, V_XY;
  64.     extern char        V_ATTR;
  65.     extern register    vprintf();
  66.