home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
SNPD9404.ZIP
/
SCRNMACS.H
< prev
next >
Wrap
Text File
|
1994-04-03
|
1KB
|
60 lines
.I 2 2
**
** prototypes for SCROLL.C and VIDPORT.C functions added by Bob Stout
.I 13 17
/*
** Text screen scrolling function from SCROLL.C in SNIPPETS
*/
#define SCROLL_UP 0
#define SCROLL_DN 1
void scroll(int direction,
int num_lines,
int vattrib,
int ulrow,
int ulcomumn,
int lrrow,
int lrcolumn);
/*
.D 14 2
.I 20 6
void GetCurPos(int *col, int *row);
int GetCurAtr(void);
void ClrEol(void);
void ClrEop(void);
void Repaint(int vattrib);
.D 21 1
.I 28 1
#define SCREENSEG ((unsigned)((COLORMODE)?0xB800:0xB000))
.D 29 1
.I 45 25
/*
** colors -- Use as is for foreground colors
** For background, shift left by 4 and OR with
** foreground and possible video attributes
*/
#define BLACK 0
#define BLUE 1
#define GREEN 2
#define CYAN 3
#define RED 4
#define MAGENTA 5
#define BROWN 6
#define WHITE 7
#define GRAY 8
#define LTBLUE 9
#define LTGREEN 10
#define LTCYAN 11
#define LTRED 12
#define LTMAGENTA 13
#define YELLOW 14
#define HIWHITE 15 /* hi-intensity white */
#define BG_(a) (((a) & 0x7f) << 4)