Commits

Pablo Caro Revuelta committed fd4e81a Draft

permitir colores ANSI

  • Participants
  • Parent commits 038f3a6

Comments (0)

Files changed (1)

 
     for tag, repl in patterns.items():
         fs = re.sub(tag_start + tag + tag_end, repl, fs)
+
+    # Allow ANSI escape sequences through
+    fs = re.sub( '\\\\\\[\\\\(?:033|e)\\[((?:[0-9]+;)*[0-9]+)m\\\\\\]', '[\\1m', fs )
+
     ui.status(fs)
 
 def _pull_with_cache(orig, ui, repo, *args, **opts):