Re: How to print colored text to a linux terminal?

From: LEE Sau Dan (danlee_at_informatik.uni-freiburg.de)
Date: 06/03/04

  • Next message: Matteo Corti: "Re: How to handle signal?"
    Date: 03 Jun 2004 22:21:09 +0200
    
    

    >>>>> "Steve" == Steve Kirkendall <skirkendall@dsl-only.net> writes:

        Steve> In C/C++ source code, the escape character is written as
        Steve> \033, so the above example could be programmed as...

        Steve> int main(int argc, char **argv) {
        Steve> puts("\033[1;33mThis is yellow\033[m"); return 0; }

    Is "\e" no longer supported?

    -- 
    Lee Sau Dan                     +Z05biGVm-                          ~{@nJX6X~}
    E-mail: danlee@informatik.uni-freiburg.de
    Home page: http://www.informatik.uni-freiburg.de/~danlee
    

  • Next message: Matteo Corti: "Re: How to handle signal?"