forked from ninja-build/ninja
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support ANSI escape color codes in NINJA_STATUS
Adds support for ANSI escape sequences used for colorization to the job status indicator, and updates `ElideMiddle()` to account for the non-obvious change in text width. As an example, the following will now emit the job status in green: env NINJA_STATUS="\\033[32m[%f/%t] \\033[0m" ninja; Invalid color escape codes are treated as plain text (as before). ANSI escape sequences apart from `\033...m` are not supported. Closes ninja-build#713. Closes ninja-build#912.
- Loading branch information
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters