From 007173ba840828a0f710e0fa42b00c5b1d9a0c84 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Tue, 30 May 2023 12:18:37 -0400 Subject: [PATCH] helper: set `NO_COLOR` env for p2pool The undisplayable ANSI codes appearing in Gupax's P2Pool console were indeed color codes. P2Pool's "Log started" message doesn't check `--no-color`, but it does check `NO_COLOR`, so set that before starting. --- src/helper.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/helper.rs b/src/helper.rs index 3f12f9a..069eca1 100644 --- a/src/helper.rs +++ b/src/helper.rs @@ -491,6 +491,7 @@ impl Helper { debug!("P2Pool | Creating command..."); let mut cmd = portable_pty::CommandBuilder::new(path.as_path()); cmd.args(args); + cmd.env("NO_COLOR", "true"); cmd.cwd(path.as_path().parent().unwrap()); // 1c. Create child debug!("P2Pool | Creating child...");