summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 78ed060..857d34e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -80,6 +80,9 @@ fn main() {
}
if matches.subcommand_matches("watch").is_some() {
+ /* Clears the terminal with an ANSI escape code.
+ Works in UNIX and newer Windows terminals. */
+ println!("\x1Bc");
watch(&exercises).unwrap();
}