Mail Archives: djgpp/1998/11/05/16:29:28
jackstinchcombe AT my-dejanews DOT com wrote:
>
> I cant get textattr, textcolor or textbackground to work, the colour
> combination on the screen stays the same. The following code just puts "this
> is a test" on the screen in the normal white-on-black, rather than the
> red-on-white i expected.
>
> Any ideas what im doing wrong?
>
> #include <stdio.h>
> #include <conio.h>
> void main(void) {
> textcolor (12);
> textbackground (15);
> printf("\nthis is a test\n");
> }
See FAQ section 9.4. Basically, use `cprintf'.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -