Permalink
Browse files

possibly better color filtering

  • Loading branch information...
1 parent fe58960 commit 60a3799173bd11f518837712e0195baeed51d5e7 @wuub wuub committed Sep 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 sublimerepl.py
View
@@ -248,6 +248,7 @@ def write(self, unistr):
# remove color codes
if self._filter_color_codes:
+ unistr = re.sub(r'\033\[\d*;\d*\w', '', unistr)
unistr = re.sub(r'\033\[\d*\w', '', unistr)
# string is assumet to be already correctly encoded

0 comments on commit 60a3799

Please sign in to comment.