Add new ansi_download format to download stdout and preserve ANSI escape sequences.

This commit is contained in:
Chris Church
2016-12-15 16:03:00 -05:00
parent 46922e956f
commit b6e2e3da70
3 changed files with 48 additions and 8 deletions

View File

@@ -80,3 +80,8 @@ class AnsiTextRenderer(PlainTextRenderer):
media_type = 'text/plain'
format = 'ansi'
class AnsiDownloadRenderer(PlainTextRenderer):
format = "ansi_download"