From 9b4e74ed3087e2ba2f9e310b1fab511baa27ce79 Mon Sep 17 00:00:00 2001 From: Jim McGrath Date: Wed, 6 Dec 2017 11:40:04 -0600 Subject: [PATCH] fix screen clearing on windows --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index a59ebe7..837c945 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -24,7 +24,7 @@ pub struct Args { #[cfg(target_family = "windows")] pub fn clear_screen() { - let _ = Command::new("cls").status(); + let _ = Command::new("cmd").arg("/c").arg("cls").status(); } #[cfg(target_family = "unix")]