Commit graph

168 commits

Author SHA1 Message Date
DainDwarf
f80d3e7642 Update README.md
The text "COLOR" does not appear on github -> I propose using *COLOR* instead of <COLOR>
2014-11-21 14:32:47 +01:00
b193ce4885 An example config for coloring GDB sessions
Use a config hack to plug colout on GDB output.
2014-10-16 20:07:41 +02:00
67f7920520 better valgrind theme 2014-10-16 19:04:59 +02:00
963d6addf1 bugfix lexers 2014-10-16 19:04:50 +02:00
d47272663d enhunce the valgrind theme
less red sections
highlight null adresses
2014-10-08 11:13:08 +02:00
f7ae2118e7 bugfix printing ressources
Use the context
2014-10-08 11:10:35 +02:00
9223717213 more thoughts about arithmetics in the readme 2014-09-28 23:02:44 +02:00
63ad030360 Merge branch 'master' into defcmap 2014-09-16 10:38:22 +02:00
ddaab0b1db add a valgrind theme 2014-09-16 10:28:47 +02:00
9fd0df9963 Separated Ninja theme with correct handling of scale
Add a flag for user defined colormaps in the context.
Do not overload the colormap if the user changed it.
Inherit the Ninja theme from the cmake one.
Explanations about themes in the README.
2014-05-02 19:30:26 +02:00
200f1cd1f3 bugfix: test lexers in context 2014-05-02 19:08:57 +02:00
39674665d8 bugfix: use the full scale range
Was using scale[1:] colors instead of scale[:]
2014-04-25 14:38:33 +02:00
56f9f0d7e6 bugfix: random in 8-colors mode with user-defined default colormap 2014-04-25 14:28:15 +02:00
9d4fde40ba Special random color set can be changed as a colormap
Add random among the colormaps, if this colormap is changed, it will pick random colors in it.
2014-04-25 14:02:36 +02:00
e499f40f7d Bring global context variables to the themes.
Encapsulate global variables in the `context` dictionary.
Pass the context through the called themes, that can thus change the configuration.
2014-04-25 13:50:51 +02:00
d3efe7e851 Make default colormaps work.
Overwrite default colormaps only if asked.
Correctly interpret integers in mode().
Test registered colormaps after specials.
Silently ignore duplicated external palettes.
Add a set_special_colormaps function.
Do not sue ANSI_min/max as limits for the whole ANSI range.
Move global variables at the top of the file.
2014-04-25 10:56:17 +02:00
c830a02fec bugfix: return text if no color, more debug infos
use global colormap_idx
2014-04-24 09:54:30 +02:00
f0ab462fc1 simplify default colormap change 2014-04-16 01:11:05 +02:00
dcf5a84316 replace Fraction with Scale in cmake theme 2014-04-16 00:39:34 +02:00
5f03dd11b8 fix mode detection for scale and hash 2014-04-16 00:38:48 +02:00
e291194173 Refactor colorin
Move conditional branches in subfunctions.
2014-04-16 00:10:30 +02:00
3e0535db25 Adds default colormaps and update README
And bugfix: --debug in 256-colors mode
2014-04-07 11:40:13 +02:00
d6452a6246 Sort ressources before printing them 2014-04-07 10:12:39 +02:00
bdc90eb6c5 Replace the "Fraction" special by a string evaluation
Fractions are interpreted automagically, without the need to indicate a special.
This is thus a valid call:
    `echo "[1/3-0.1%]" | colout -l 0,1 "^\[.*%\]$" Scale`
2014-04-07 09:59:26 +02:00
df5ca732de Merge pull request #60 from blastrock/master
Make cmake coloring work with Ninja
2014-04-03 23:47:03 +02:00
Philippe Daouadi
127b01e6f5 Make cmake coloring work with Ninja 2014-04-03 16:36:18 +02:00
7d589a68ba Adds a LaTeX theme 2014-03-14 21:28:03 +01:00
230f1909bc Rename java theme as javac 2014-02-21 14:51:15 +01:00
3def9779a4 Add a theme for java 2014-02-21 11:01:40 +01:00
488c2a2f88 Better help messages 2014-02-10 21:16:28 +01:00
4afd5aef69 Merge branch 'master' of http://github.com/nojhan/colout
Conflicts:
	colout/colout.py
2014-02-10 21:07:51 +01:00
796246e789 Dynamic warning if babel or pygments are not installed 2014-02-10 21:05:21 +01:00
b9176eab52 Color the g++ command line call
Useful when your build system shows the commad line.
For example, set VERBOSE=1 with make.
2014-02-10 15:36:06 +01:00
2231cd89bd Add a mandatory argument to --resources. v0.4
It should be use at least with an "all" argument.
Partially fix #49
2014-02-02 17:44:48 +01:00
ce3d22b97e Merge pull request #57 from Louis-Kenzo/wip/hash
Add Hash special coloring mode
2014-02-02 08:03:57 -08:00
c8926ee770 Merge pull request #56 from Louis-Kenzo/wip/unicode
Handle Unicode decode errors by continuing to process
2014-02-02 08:03:05 -08:00
d6de1e6a6a Merge pull request #55 from dmerejkowsky/master
README: remove non-ascii characters
2014-02-02 08:02:32 -08:00
Louis-Kenzo Furuya Cahier
185be07c80 Add Hash special coloring mode
The Hash coloring mode computes a hash for a matched string segment, and
always associates the same color with the same string, yet varies colors
with even small changes.
2014-01-27 16:34:53 +01:00
Louis-Kenzo Cahier
6092addb10 Handle Unicode decode errors by continuing to process
Used to result in an uncaught exception.
2014-01-27 16:15:33 +01:00
Dimitri Merejkowsky
6c3075eed5 README: remove non-ascii characters
This prevented setup.py from working on my box
2014-01-07 09:56:46 +01:00
483bb886d7 bugfix path match for python theme 2013-11-06 11:23:32 +01:00
50a77bb22e add a theme for python stack traces 2013-10-10 22:22:36 +02:00
Johann Dreo
2616166f76 strip the color name before parsing it
This permits to use spaces to indent themes.
2013-10-10 22:17:50 +02:00
Johann Dreo
410aaf1623 add the "orange" and "purple" color synonyms 2013-10-10 15:56:24 +02:00
Johann Dreo
f59b9dfaf1 color "fatal error" in red in g++ theme 2013-10-10 15:55:45 +02:00
Johann Dreo
f30838cc57 Allow big group matching for "scale" special color v0.3
When matching a group with "scale", filter out everything that does not seem to
be necessary to interpret the string as a number this permits to transform
"[95%]" to "95" before number conversion, and thus allows to color a group larger
than the matched number

Update the cmake theme accordingly.
2013-09-25 00:04:20 +02:00
Johann Dreo
94e9d04866 bugfix in the cmake theme
Color the Linking sections with no slash
2013-09-23 12:35:41 +02:00
Johann Dreo
f7c73833b4 Correct small errors in cmake theme
Do not use nested groups for "Linking" messages.
Allow "-" in file names for "Building" messages.
2013-09-19 14:02:24 +02:00
Johann Dreo
460b126583 Better colorization of the linker in the g++ theme 2013-09-19 11:50:39 +02:00
Johann Dreo
1e1177b56b delete duplicate entry for --all in the README v0.2 2013-09-03 21:27:51 +02:00