home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_C / SNPD9404.ZIP / SCRNMACS.H < prev    next >
Text File  |  1994-04-03  |  1KB  |  60 lines

  1. .I 2 2
  2. **
  3. **  prototypes for SCROLL.C and VIDPORT.C functions added by Bob Stout
  4. .I 13 17
  5.  
  6. /*
  7. **  Text screen scrolling function from SCROLL.C in SNIPPETS
  8. */
  9.  
  10. #define SCROLL_UP 0
  11. #define SCROLL_DN 1
  12.  
  13. void scroll(int direction,
  14.             int num_lines,
  15.             int vattrib,
  16.             int ulrow,
  17.             int ulcomumn,
  18.             int lrrow,
  19.             int lrcolumn);
  20.  
  21. /*
  22. .D 14 2
  23. .I 20 6
  24. void GetCurPos(int *col, int *row);
  25. int  GetCurAtr(void);
  26. void ClrEol(void);
  27. void ClrEop(void);
  28. void Repaint(int vattrib);
  29.  
  30. .D 21 1
  31. .I 28 1
  32.  #define SCREENSEG  ((unsigned)((COLORMODE)?0xB800:0xB000))
  33. .D 29 1
  34. .I 45 25
  35.  
  36. /*
  37. ** colors -- Use as is for foreground colors
  38. **           For background, shift left by 4 and OR with
  39. **           foreground and possible video attributes
  40. */
  41.  
  42. #define BLACK 0
  43. #define BLUE 1
  44. #define GREEN 2
  45. #define CYAN 3
  46. #define RED 4
  47. #define MAGENTA 5
  48. #define BROWN 6
  49. #define WHITE 7
  50. #define GRAY 8
  51. #define LTBLUE 9
  52. #define LTGREEN 10
  53. #define LTCYAN 11
  54. #define LTRED 12
  55. #define LTMAGENTA 13
  56. #define YELLOW 14
  57. #define HIWHITE 15    /* hi-intensity white */
  58.  
  59. #define BG_(a) (((a) & 0x7f) << 4)
  60.