Results 1 to 6 of 6

Thread: Colered terminal output c++

  1. #1
    Join Date
    Apr 2005
    Beans
    849

    Colered terminal output c++

    I'm doing a terminal program in c/c++.

    And I wan't to display colored output in terminal.
    Does anyone know how to do this?

    thanks in advance

  2. #2
    Join Date
    Apr 2007
    Location
    Hobart, IN USA
    Beans
    65
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Colered terminal output c++

    I think the package you are looking for is called colorgcc. Can someone verify?

  3. #3
    Join Date
    Jul 2006
    Beans
    30

    Re: Colered terminal output c++

    Quote Originally Posted by nerdzero View Post
    I think the package you are looking for is called colorgcc. Can someone verify?
    that's for gcc's output. I think he is looking for a colored stdout from the program.

    Ncurses would work, otherwise you would need to print out escaped commands (which are terminal specific).

  4. #4
    Join Date
    Apr 2007
    Beans
    14,781

    Re: Colered terminal output c++

    Ncurses is exactly what you want, http://laroza.freehostia.com/LinuxSpecific

  5. #5
    Join Date
    Apr 2005
    Beans
    849

    Re: Colered terminal output c++

    Thanks I'll look into the ncurses stuff.

    But the gccolor is also, quite nice.

  6. #6
    Join Date
    Apr 2005
    Beans
    849

    Re: Colered terminal output c++

    My program should be multiplatform.
    And as far as I can tell, ncurses only works on unix.

    does anyone know of something similar to ncurses.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •