From 980fba831a6bce4223d40cb3ab70d97bce1cfae7 Mon Sep 17 00:00:00 2001
From: Adi <deepspace2@gmail.com>
Date: Thu, 23 Jul 2020 21:13:22 +0300
Subject: [PATCH] Changed 'cls' command to 'clear'

---
 src/main.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 7c293c8..0e1291c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -143,7 +143,7 @@ fn main() {
 
 fn spawn_watch_shell(failed_exercise_hint: &Arc<Mutex<Option<String>>>) {
     let failed_exercise_hint = Arc::clone(failed_exercise_hint);
-    println!("Type 'hint' to get help or 'cls' to clear the screen");
+    println!("Type 'hint' to get help or 'clear' to clear the screen");
     thread::spawn(move || loop {
         let mut input = String::new();
         match io::stdin().read_line(&mut input) {
@@ -153,7 +153,7 @@ fn spawn_watch_shell(failed_exercise_hint: &Arc<Mutex<Option<String>>>) {
                     if let Some(hint) = &*failed_exercise_hint.lock().unwrap() {
                         println!("{}", hint);
                     }
-                } else if input.eq("cls") {
+                } else if input.eq("clear") {
                     println!("\x1B[2J\x1B[1;1H");
                 } else {
                     println!("unknown command: {}", input);