textcolor() fuction

This is a discussion on textcolor() fuction within the C Programming forums, part of the General Programming Boards category; Hi all I was just look at some of the posts and saw textcolor() fuction,and was wondering if it's in ...

  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 04: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
    Helper
    Join Date
    Jun 2004
    Posts
    255
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21