Mail Archives: djgpp/1998/11/19/14:00:22
>From: "kryton" <kryton AT thefarm DOT net.###>
>Subject: coloured text
>Date: 19 Nov 1998 14:27:12 GMT
>To: djgpp AT delorie DOT com
>Reply-To: djgpp AT delorie DOT com
>
>Hi
>could someone out there shed some light on how to set text colours ?
>without using allegro that is :)
#include <conio.h>
int main(void)
{
textattr(background_color * 16 + foreground colour )
cprintf("this is coloured text\n");
}
background_color is 0 to 7
foreground_color is 0 to 15
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
- Raw text -