Thread: textcolor() fuction

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    7

    textcolor() fuction

    Hi all I was just look at some of the posts and saw textcolor() fuction,and was wondering if it's in the stdio.h libary,or will I have to write it myself?
    Mach
    Last edited by Mach_ie; 06-23-2004 at 03:45 AM. Reason: stupid mistakes D'oh

  2. #2
    ~viaxd() viaxd's Avatar
    Join Date
    Aug 2003
    Posts
    246
    i think you need conio.h .but textcolor() only works on dos and windows, so you'll have to try something different if you're using nix.

  3. #3
    Quote Originally Posted by Mach_ie
    Hi all I was just look at some of the posts and saw textcolor() fuction,and was wondering if it's in the stdio.h libary,or will I have to write it myself?
    textcolor() is part of a Borland C library called conio. It's not standard at all.

    There are different techniques to enhance the display. Some deal directly with the hardware (DOS/Windows -> conio, unix-like : [n]curses), others assume that the terminal has special display enhancements, like the VT-100 escape sequences (aka ANSI sequences), Videotext, HTML etc.

    In that case you can probably use printf() to send the character sequences to stdout.
    Emmanuel Delahaye

    "C is a sharp tool"

  4. #4
    Me want cookie! Monster's Avatar
    Join Date
    Dec 2001
    Posts
    680
    FAQ

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    7
    Thanks for clearing that up.

    Mach

Popular pages Recent additions subscribe to a feed