Dev C++ Current Line Color
It then changes the foreground color to each color in the ConsoleColor enumeration except to the color that matches the current background, and it changes the background color to each color in the ConsoleColor enumeration except to the color that matches the current foreground. (If the foreground color is the same as the background color, the. Nov 26, 2010 Ok well im currently making a C program and i would like to know how to make a sort of menu kinda thing with one line in the M-DOS C Program like Grey or something A Bit like Zork how it had a Grey Line at the Top. Aug 25, 2011 C Change CMD color background and text. C Change CMD color background and text. Im coding with c (dev-c). How do i change the background color of my cmd box? But more importantly, how do i change the color of certain text? I don't understand this line,how can you return 2 values? M4ster r0shi I don't return two.
Following colors are available for use in C graphics programming.
Colors table
Dev C++ Current Line Colors
Color | Value |
BLACK | 0 |
BLUE | 1 |
GREEN | 2 |
CYAN | 3 |
RED | 4 |
MAGENTA | 5 |
BROWN | 6 |
LIGHTGRAY | 7 |
DARKGRAY | 8 |
LIGHTBLUE | 9 |
LIGHTGREEN | 10 |
LIGHTCYAN | 11 |
LIGHTRED | 12 |
LIGHTMAGENTA | 13 |
YELLOW | 14 |
WHITE | 15 |
Dev C++ Current Line Coloring Page
Dev C++ Current Line Colorado
Total number of colors available depend on current graphics driver and mode. Use colors name in capital letters, for example,use setcolor(RED) not setcolor(red) the latter will give you an error. You may use number instead of color for example,setbkcolor(GREEN) or setbkcolor(2) are same, but you are advised to use color name as it will improve readability of program.