00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef INCLUDE_RSRC_PORTAGE_CONSOLE
00012 #define INCLUDE_RSRC_PORTAGE_CONSOLE
00013
00014
00015 #include <string.h>
00016 #include <stdio.h>
00017 #include <stdlib.h>
00018
00019 #ifdef WIN32
00020 #include <windows.h>
00021 #else
00022
00023 #endif
00024
00025
00026
00027
00028 void ConsoleClear();
00029
00030 #ifdef WIN32
00031 #define COLOR_F_NOIR 0x0000
00032 #define COLOR_F_BLEU 0x0001
00033 #define COLOR_F_VERT 0x0002
00034 #define COLOR_F_CYAN 0x000B
00035 #define COLOR_F_ROUGE 0x000C
00036 #define COLOR_F_ROSE 0x000D
00037 #define COLOR_F_JAUNE 0x000E
00038 #define COLOR_F_BLANC 0x000F
00039
00040 #define COLOR_B_NOIR 0x0000
00041 #define COLOR_B_BLEU 0x0010
00042 #define COLOR_B_VERT 0x0020
00043 #define COLOR_B_CYAN 0x00B0
00044 #define COLOR_B_ROUGE 0x00C0
00045 #define COLOR_B_ROSE 0x00D0
00046 #define COLOR_B_JAUNE 0x00E0
00047 #define COLOR_B_BLANC 0x00F0
00048 #else
00049 #define COLOR_F_NOIR 30
00050 #define COLOR_F_BLEU 34
00051 #define COLOR_F_VERT 32
00052 #define COLOR_F_CYAN 36
00053 #define COLOR_F_ROUGE 31
00054 #define COLOR_F_ROSE 35
00055 #define COLOR_F_JAUNE 33
00056 #define COLOR_F_BLANC 37
00057
00058 #define COLOR_B_NOIR 40
00059 #define COLOR_B_BLEU 44
00060 #define COLOR_B_VERT 42
00061 #define COLOR_B_CYAN 46
00062 #define COLOR_B_ROUGE 41
00063 #define COLOR_B_ROSE 45
00064 #define COLOR_B_JAUNE 43
00065 #define COLOR_B_BLANC 47
00066 #endif
00067
00068
00069
00070
00071
00072
00073
00074 void ConsoleSetColor(unsigned int iText, unsigned int iFond = COLOR_B_NOIR);
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085 void ConsoleColor(unsigned int iText, unsigned int iFond, unsigned int iX, unsigned int iY, unsigned int iL, unsigned int iH = 1);
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096 void ConsoleWrite(char *pData, unsigned int iX, unsigned int iY, unsigned int iL = 0, unsigned int iH = 1);
00097
00098
00099 #endif