www.pudn.com > MC20-CÓïÑÔµÄС±àÒëÆ÷.zip > VIDEO.H


/* 
 * MICRO-C IBM/PC Video interface definitions 
 * 
 * Copyright 1989,1990 Dave Dunfield 
 * All rights reserved. 
 */ 
 
/* General keys */ 
#define _KUA	0xff80			/* Up    arrow	*/ 
#define _KDA	0xff81			/* Down  arrow	*/ 
#define _KLA	0xff82			/* Left  arrow	*/ 
#define _KRA	0xff83			/* Right arrow	*/ 
#define _KPU	0xff84			/* PgUp			*/ 
#define _KPD	0xff85			/* PgDn			*/ 
#define _KHO	0xff86			/* Home			*/ 
#define _KEN	0xff87			/* End			*/ 
#define _KKP	0xff88			/* Keypad '+'	*/ 
#define _KKM	0xff89			/* Keypad '-'	*/ 
#define _KIN	0xff8a			/* Insert key	*/ 
#define _KDL	0xff8b			/* Delete key	*/ 
#define _KBS	0xff8c			/* Backspace	*/ 
/* Functions keys */ 
#define _K1		0xff8d			/* Function 1	*/ 
#define _K2		0xff8e			/* Function 2	*/ 
#define _K3		0xff8f			/* Function 3	*/ 
#define _K4		0xff90			/* Function 4	*/ 
#define _K5		0xff91			/* Function 5	*/ 
#define _K6		0xff92			/* Function 6	*/ 
#define _K7		0xff93			/* Function 7	*/ 
#define _K8		0xff94			/* Function 8	*/ 
#define _K9		0xff95			/* Function 9	*/ 
#define _K10	0xff96			/* Function 10	*/ 
/* Special control keys */ 
#define _CPU	0xff97			/* Control PgUp */ 
#define _CPD	0xff98			/* Control PgDn */ 
#define _CHO	0xff99			/* Control Home */ 
#define _CEN	0xff9a			/* Control End  */ 
 
/* 
 * Video attribute bit definitions 
 */ 
#define BLINK		0x80		/* Blinking video modes */ 
#define INTENSE		0x08		/* Intensity control */ 
 
/* 
 * Color video attribute bits (Color adapters only). 
 * The individual RED, GREEN and BLUE bits may be combined 
 * to provide 8 distinct foreground and background colors. 
 * Note: INTENSE bit affects foreground colors only. 
 */ 
#define F_RED		0x04		/* Foreground RED */ 
#define F_GREEN		0x02		/* Foreground GREEN */ 
#define F_BLUE		0x01		/* Foreground BLUE */ 
#define B_RED		0x40		/* Background RED */ 
#define B_GREEN		0x20		/* Background GREEN */ 
#define B_BLUE		0x10		/* Background BLUE */ 
 
/* Monochrome video attributes (Monochrome adapters only) */ 
#define	NORMAL		0x07		/* Monochrome normal video */ 
#define REVERSE		0x70		/* Monochrome reverse video */ 
#define UNDERLINE	0x01		/* Monochrome underline video */ 
 
	extern int		V_BASE, V_XY; 
	extern char		V_ATTR; 
	extern register	vprintf();