Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > coloured text...

Reply
Thread Tools

coloured text...

 
 
sudip
Guest
Posts: n/a
 
      07-01-2005
Dear Programmers...
How could I print text in color on GNU/Linux platform...in the way I
do on MS-DOS platform using <conio.h> and cprintf() function...
plz help
thanx

 
Reply With Quote
 
 
 
 
Michael Mair
Guest
Posts: n/a
 
      07-01-2005
sudip wrote:
> Dear Programmers...
> How could I print text in color on GNU/Linux platform...in the way I
> do on MS-DOS platform using <conio.h> and cprintf() function...


Well, as you seem to know, conio.h and cprintf() are not standard C
but platform (and maybe implementation) specific.
This is beyond the scope of this newsgroup.
Asking in a newsgroup for Unix/Linux programming newsgroup may help
you.

Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
 
Reply With Quote
 
 
 
 
REH
Guest
Posts: n/a
 
      07-01-2005

"sudip" <> wrote in message
news: oups.com...
> Dear Programmers...
> How could I print text in color on GNU/Linux platform...in the way I
> do on MS-DOS platform using <conio.h> and cprintf() function...
> plz help
> thanx
>


Have you tried a crayon?

REH


 
Reply With Quote
 
Kenneth Brody
Guest
Posts: n/a
 
      07-06-2005
sudip wrote:
>
> Dear Programmers...
> How could I print text in color on GNU/Linux platform...in the way I
> do on MS-DOS platform using <conio.h> and cprintf() function...


The short answer, for comp.lang.c, is "you can't". (It requires non-
standard extensions and/or libraries.)

The longer answer is "ask a Linux/Unix newsgroup about terminfo and/or
curses".

And, in addition, I will say that no matter what I try, I can't get my
DT-100 terminal to display any colors other than green and black.

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <private.php?do=newpm&u=>


 
Reply With Quote
 
Dik T. Winter
Guest
Posts: n/a
 
      07-07-2005
In article <> Kenneth Brody <> writes:
....
> And, in addition, I will say that no matter what I try, I can't get my
> DT-100 terminal to display any colors other than green and black.


You are unlucky. I always liked the HP terminals with their light gray
on black. I thought the green was too green.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I print out in the standard output coloured lines cniharral@gmail.com Python 9 02-02-2007 02:35 PM
Blue coloured text beneath folders. g saul Computer Support 10 10-02-2005 02:26 PM
Differently Coloured Text in one textual area arun.hallan@gmail.com Java 2 02-11-2005 10:33 AM
How to do a coloured line Thibault HTML 9 10-11-2004 10:08 AM
Coloured Buttons Venkat HTML 3 07-01-2003 08:24 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57