]> pd.if.org Git - mmurtl/commitdiff
autocommit for file dated 1994-09-04 11:18:18
authorRichard Burgess <>
Sun, 4 Sep 1994 11:18:18 +0000 (11:18 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 17 Oct 2016 14:03:47 +0000 (14:03 +0000)
ossource/mvid.h [new file with mode: 0644]

diff --git a/ossource/mvid.h b/ossource/mvid.h
new file mode 100644 (file)
index 0000000..cecfde3
--- /dev/null
@@ -0,0 +1,106 @@
+/* MMURTL Operating System Source Code\r
+   Copyright 1991,1992,1993,1994 Richard A. Burgess\r
+   ALL RIGHTS RESERVED   Version 1.0\r
+*/\r
+\r
+\r
+/* The colors for TTYOut, PutChars and PutAttrs are made of 16 foreground\r
+   colors, 8 background colors and 1 bit for blinking (all in one byte)\r
+   The High nibble is the background and low is the foreground.\r
+   The high bit of each is the intensity bit, On means HIGH.\r
+\r
+       The LOW nibble (foreground) is defined as:\r
+\r
+       Normal                          w/ Intensity Bit set\r
+       Black   - 0000 (0)      Grey                    - 1000 (8)\r
+       Blue    - 0001 (1)      Light Blue              - 1001 (9)\r
+       Green   - 0010 (2)      Light Green     - 1010 (A)\r
+       Cyan    - 0011 (3)      Light Cyan              - 1011 (B)\r
+       Red     - 0100 (4)      Light Red               - 1100 (C)\r
+       Magenta - 0101 (5)      Light Magenta   - 1101 (D)\r
+       Brown   - 0110 (6)  Yellow              - 1110 (E)\r
+       White   - 0111 (7)      Bright White    - 1111 (F)\r
+\r
+       The HIGH nibble (background) is defined as:\r
+\r
+       Normal                          (High bit sets blinking)\r
+       Black   - 0000 (0)\r
+       Blue    - 0001 (1)\r
+       Green   - 0010 (2)\r
+       Cyan    - 0011 (3)\r
+       Red     - 0100 (4)\r
+       Magenta - 0101 (5)\r
+       Brown   - 0110 (6)\r
+       Grey    - 0111 (7)\r
+\r
+*/\r
+\r
+/* To specify an attribute OR (|) the BLINK, FG & BG values\r
+you want together */\r
+\r
+#define BLINK          0x80\r
+\r
+#define        BLACK           0x00\r
+#define BLUE           0x01\r
+#define GREEN          0x02\r
+#define CYAN           0x03\r
+#define RED                    0x04\r
+#define MAGENTA                0x05\r
+#define BROWN          0x06\r
+#define WHITE          0x07\r
+#define        GRAY            0x08\r
+#define LTBLUE         0x09\r
+#define LTGREEN                0x0A\r
+#define LTCYAN         0x0B\r
+#define LTRED          0x0C\r
+#define LTMAGENTA      0x0D\r
+#define YELLOW         0x0E\r
+#define BRITEWHITE     0x0F\r
+\r
+#define        BGBLACK         0x00\r
+#define BGBLUE         0x10\r
+#define BGGREEN                0x20\r
+#define BGCYAN         0x30\r
+#define BGRED          0x40\r
+#define BGMAGENTA      0x50\r
+#define BGBROWN                0x60\r
+#define BGWHITE                0x70\r
+\r
+\r
+/* MMURTL Basic Video calls */\r
+\r
+extern far long SetVidOwner(long JobNum);\r
+extern far long SetNormVid(long dAttr);\r
+extern far long GetNormVid(long *pNormVidRet);\r
+extern far long ClrScr(void);\r
+extern far long GetVidChar(long ddCol,\r
+                        long ddLine,\r
+                                           char *pCharRet,\r
+                                           char *pAttrRet);\r
+extern far long SetXY(long NewX, long NewY);\r
+extern far long PutVidAttrs(long ddCol,\r
+                         long ddLine,\r
+                                                long sChars,\r
+                                                long dAttr);\r
+extern far long PutVidChars(long ddCol,\r
+                         long ddLine,\r
+                                                char *pChars,\r
+                                                long sChars,\r
+                                                long ddAttrib);\r
+extern far long GetVidOwner(long *pdVidNumRet);\r
+extern far long GetXY(long *pXRet, long *pYRet);\r
+extern far long ScrollVid(long ddULCol,\r
+                          long ddULline,\r
+                          long nddCols,\r
+                          long nddLines,\r
+                          long ddfUp);\r
+extern far long TTYOut (char *pTextOut, long ddTextOut, long ddAttrib);\r
+\r
+extern far long EditLine(unsigned char *pStr,\r
+                                                unsigned long dCrntLen,\r
+                                                unsigned long dMaxLen,\r
+                                                unsigned long *pdLenRet,\r
+                                                unsigned char *pbExitChar,\r
+                                                unsigned long dEditAttr);\r
+\r
+/******* End of MVid.h ***************/\r