From bb03255da042f478d4fb1866b39028760e14f0bf Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 2 Apr 2012 14:08:30 +1200 Subject: Nicer coloring for HTTP response codes. 20x: green 30x: blue 40x: orange 50x: light red other (non-standard or uncommon): dark red --- libmproxy/console/palettes.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libmproxy/console/palettes.py') diff --git a/libmproxy/console/palettes.py b/libmproxy/console/palettes.py index 0b80de21..c1d83188 100644 --- a/libmproxy/console/palettes.py +++ b/libmproxy/console/palettes.py @@ -33,8 +33,15 @@ dark = [ # List and Connections ('method', 'dark cyan', 'default'), ('focus', 'yellow', 'default'), - ('goodcode', 'light green', 'default'), + + ('code_200', 'light green', 'default'), + ('code_300', 'light blue', 'default'), + ('code_400', 'light red', 'default', None, "#f60", "default"), + ('code_500', 'light red', 'default'), + ('code_other', 'dark red', 'default'), + ('error', 'light red', 'default'), + ('header', 'dark cyan', 'default'), ('highlight', 'white,bold', 'default'), ('intercept', 'brown', 'default', None, "#f60", "default"), -- cgit v1.2.3