HomePhabricator

Improve PhutilConsole rendering support for ANSI escape sequences

Authored by epriestley on Nov 23 2016, 3:31 PM.

Description

Improve PhutilConsole rendering support for ANSI escape sequences

Summary:
Ref T10895. Currently, if you try to pass tsprintf(...) to this stuff, it gets upset.

Support rendering PhutilTerminalString properly, with indenting/wrapping.

Test Plan: Wrote code with addParagraph(tsprintf(...)) and ran it, saw nice ANSI colors and formatting.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10895

Differential Revision: https://secure.phabricator.com/D16926