Mercurial > diff-colorize
comparison diff-colorize.py @ 13:89284f926abb 1.0b1
Darkened the colors for “old mode” and “removed”. The previous “removed” color was just too pink—not the light red I wanted.
author | Peter Hosey |
---|---|
date | Mon, 11 Aug 2008 01:17:11 -0700 |
parents | 73f326ec8142 |
children | a7214992f904 |
comparison
equal
deleted
inserted
replaced
12:73f326ec8142 | 13:89284f926abb |
---|---|
3 import sys | 3 import sys |
4 import os | 4 import os |
5 import fileinput | 5 import fileinput |
6 | 6 |
7 index_color = int(os.environ.get('DIFF_INDEX_COLOR', 32)) | 7 index_color = int(os.environ.get('DIFF_INDEX_COLOR', 32)) |
8 old_mode_color = int(os.environ.get('DIFF_OLD_MODE_COLOR', 124)) | 8 old_mode_color = int(os.environ.get('DIFF_OLD_MODE_COLOR', 88)) |
9 new_mode_color = int(os.environ.get('DIFF_NEW_MODE_COLOR', 28)) | 9 new_mode_color = int(os.environ.get('DIFF_NEW_MODE_COLOR', 28)) |
10 removed_color = int(os.environ.get('DIFF_REMOVED_COLOR', 203)) | 10 removed_color = int(os.environ.get('DIFF_REMOVED_COLOR', 160)) |
11 added_color = int(os.environ.get('DIFF_ADDED_COLOR', 2)) | 11 added_color = int(os.environ.get('DIFF_ADDED_COLOR', 2)) |
12 hunk_start_color = int(os.environ.get('DIFF_HUNK_START_COLOR', 32)) | 12 hunk_start_color = int(os.environ.get('DIFF_HUNK_START_COLOR', 32)) |
13 | 13 |
14 RESET_FORMAT = '\033[0m' | 14 RESET_FORMAT = '\033[0m' |
15 COLOR_FORMAT = '\033[38;5;%um' | 15 COLOR_FORMAT = '\033[38;5;%um' |