Parent: 2af9ef2fa0a3aee7bbeb7fd2c10205dd5fcfd2d3
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-03-19 00:41:32
Tree: fc595c927d9b81f503ba928aeaf389c8e2711947
monitor: Add option to force output color Sometimes we want to force output color even when stdout is not a terminal, for example when piping the output to a filter script and then piping it further to a pager which can display colors. This patch provides a general option to force whether color is on or off (always and never), or leave btmon to decide (auto). Reviewed-by: Daniel Winkler <danielwinkler@google.com>
Diffstat
| M | monitor/display.c | | | 12 | +++++++++++- |
| M | monitor/display.h | | | 3 | +++ |
| M | monitor/main.c | | | 17 | ++++++++++++++++- |
3 files changed, 30 insertions(+), 2 deletions(-)