Colorize log output #97

Merged
lucas merged 5 commits from feat/color-log into master 2023-04-05 16:27:29 +02:00
Showing only changes of commit c4425f5b6b - Show all commits

View file

@ -255,7 +255,7 @@ impl AppDelegate<State> for Delegate {
.expect("command type matched but didn't contain the expected value"); .expect("command type matched but didn't contain the expected value");
if let Some(line) = line.take() { if let Some(line) = line.take() {
let line = String::from_utf8_lossy(&line); let line = String::from_utf8_lossy(&line);
state.log.push_back(ansi_to_rich_text(&line)); state.log.push_back(ansi_to_rich_text(line.trim()));
} }
Handled::Yes Handled::Yes
} }