Coder's Guild Mailing List

RE: curosr control

Posted by Eian on 2001-01-26

Yeah, I am aware of conio.h, if my memory serves me correct I used in it a
CS class. But the main problem with it is that it is virtually non-existant
on *nix systems. What I might end up doing, if nobody has any other better
ideas is to just use ANSI escape sequences, as with the clients used with
accessing *nix it would almost always be compatible and then really, it
isn't too much to ask people make ansi.sys is loaded otherwise.......

Eian

> -----Original Message-----
> From: tcg@xxxx.xx.xx [mailto:tcg@xxxx.xx.xx]On Behalf Of mouse@xxxx.xxx
> Sent: Friday, January 26, 2001 2:23 PM
> To: ecounts@xxxx.xxx
> Subject: curosr control
>
>
> It's been a while since I used any cursor positioning and I actually
> forget. But as far as you loading ANSI.SYS, it would be much more
> easier if you were to use the "conio.h" file to use colors.
>
> Here is a small example that I know can be used easily with the
> Borland C/C++ 4.52 and 5.5 and a few others, including some free
> compilers.
>
>
> #include <stdio.h>
> #include <conio.h>
>
> main()
> {
>   textcolor (WHITE);
>   textbackground (BLUE);
>   cprintf ("This is a WHITE text with a BLUE background.\n");
>   return 0;
> }
>
>
> > 
>