1 /* MMURTL Operating System Source Code
\r
2 Copyright 1991,1992,1993,1994 Richard A. Burgess
\r
3 ALL RIGHTS RESERVED Version 1.0
\r
7 /* The colors for TTYOut, PutChars and PutAttrs are made of 16 foreground
\r
8 colors, 8 background colors and 1 bit for blinking (all in one byte)
\r
9 The High nibble is the background and low is the foreground.
\r
10 The high bit of each is the intensity bit, On means HIGH.
\r
12 The LOW nibble (foreground) is defined as:
\r
14 Normal w/ Intensity Bit set
\r
15 Black - 0000 (0) Grey - 1000 (8)
\r
16 Blue - 0001 (1) Light Blue - 1001 (9)
\r
17 Green - 0010 (2) Light Green - 1010 (A)
\r
18 Cyan - 0011 (3) Light Cyan - 1011 (B)
\r
19 Red - 0100 (4) Light Red - 1100 (C)
\r
20 Magenta - 0101 (5) Light Magenta - 1101 (D)
\r
21 Brown - 0110 (6) Yellow - 1110 (E)
\r
22 White - 0111 (7) Bright White - 1111 (F)
\r
24 The HIGH nibble (background) is defined as:
\r
26 Normal (High bit sets blinking)
\r
38 /* To specify an attribute OR (|) the BLINK, FG & BG values
\r
39 you want together */
\r
48 #define MAGENTA 0x05
\r
53 #define LTGREEN 0x0A
\r
56 #define LTMAGENTA 0x0D
\r
58 #define BRITEWHITE 0x0F
\r
60 #define BGBLACK 0x00
\r
62 #define BGGREEN 0x20
\r
65 #define BGMAGENTA 0x50
\r
66 #define BGBROWN 0x60
\r
67 #define BGWHITE 0x70
\r
70 /* MMURTL Basic Video calls */
\r
72 extern far long SetVidOwner(long JobNum);
\r
73 extern far long SetNormVid(long dAttr);
\r
74 extern far long GetNormVid(long *pNormVidRet);
\r
75 extern far long ClrScr(void);
\r
76 extern far long GetVidChar(long ddCol,
\r
80 extern far long SetXY(long NewX, long NewY);
\r
81 extern far long PutVidAttrs(long ddCol,
\r
85 extern far long PutVidChars(long ddCol,
\r
90 extern far long GetVidOwner(long *pdVidNumRet);
\r
91 extern far long GetXY(long *pXRet, long *pYRet);
\r
92 extern far long ScrollVid(long ddULCol,
\r
97 extern far long TTYOut (char *pTextOut, long ddTextOut, long ddAttrib);
\r
99 extern far long EditLine(unsigned char *pStr,
\r
100 unsigned long dCrntLen,
\r
101 unsigned long dMaxLen,
\r
102 unsigned long *pdLenRet,
\r
103 unsigned char *pbExitChar,
\r
104 unsigned long dEditAttr);
\r
106 /******* End of MVid.h ***************/
\r