Code Monkey home page Code Monkey logo

colorgcc's Introduction

colorgcc

Version: 1.3.2

A wrapper to colorize the output from compilers whose messages
match the "gcc" format.

Requires the ANSIColor module from CPAN.

Usage:

Option 1)
In a directory that occurs in your PATH _before_ the directory
where the compiler lives, create a softlink to colorgcc for
each compiler you want to colorize:

   g++ -> colorgcc
   gcc -> colorgcc
   cc  -> colorgcc
   etc.

That's it. When "g++" is invoked, colorgcc is run instead.
colorgcc looks at the program name to figure out which compiler to run.

Option 2)
In a directory in your PATH, create the following links to colorgcc:
   color-g++ -> colorgcc
   color-c++ -> colorgcc
   color-gcc -> colorgcc
   color-cc  -> colorgcc
Then override the compiler macros for make, for example:
   make CXX=color-g++ CC=color-gcc

The default settings can be overridden with ~/.colorgccrc.
See the comments in the sample .colorgccrc for more information.

Note:

colorgcc will only emit color codes if:

   (1) Its STDOUT is a tty and
   (2) the value of $TERM is not listed in the "nocolor" option.

If colorgcc colorizes the output, the compiler's STDERR will be
combined with STDOUT. Otherwise, colorgcc just passes the output from
the compiler through without modification.

Author: Jamie Moyers <[email protected]>
Started: April 20, 1999
Licence: GNU Public License

colorgcc's People

Contributors

jbenet avatar jflemer avatar johannes avatar malvineous avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.