coloured text...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sudip

    #1

    coloured text...

    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

  • Michael Mair

    #2
    Re: coloured text...

    sudip wrote:[color=blue]
    > 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...[/color]

    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.

    Comment

    • REH

      #3
      Re: coloured text...


      "sudip" <sudip.k.chatte rjee@gmail.com> wrote in message
      news:1120239581 .391175.159450@ f14g2000cwb.goo glegroups.com.. .[color=blue]
      > 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
      >[/color]

      Have you tried a crayon?

      REH


      Comment

      • Kenneth Brody

        #4
        Re: coloured text...

        sudip wrote:[color=blue]
        >
        > 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...[/color]

        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: <mailto:ThisIsA SpamTrap@gmail. com>


        Comment

        • Dik T. Winter

          #5
          Re: coloured text...

          In article <42CC08AE.C28F7 532@spamcop.net > Kenneth Brody <kenbrody@spamc op.net> writes:
          ....[color=blue]
          > 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. ;-)[/color]

          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/

          Comment

          Working...