Dev C++ Current Line Color

CurrentC++

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

ColorValue
BLACK0
BLUE1
GREEN2
CYAN3
RED4
MAGENTA5
BROWN6
LIGHTGRAY7
DARKGRAY8
LIGHTBLUE9
LIGHTGREEN10
LIGHTCYAN11
LIGHTRED12
LIGHTMAGENTA13
YELLOW14
WHITE15

Dev C++ Current Line Coloring Page

Dev C++ Current Line Color

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.