aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2020-08-27 11:35:29 +0200
committerAram Drevekenin <aram@poor.dev>2020-08-27 11:35:29 +0200
commit68a8422457391ed03b396fe0e7c1b85e9c69e46e (patch)
tree3cd988aa4e5b63452e8da4096f1f09ebd14ba1a0 /src
parentadd stdin/stdout to os_input (diff)
downloadsl0ppij-68a8422457391ed03b396fe0e7c1b85e9c69e46e.tar.gz
sl0ppij-68a8422457391ed03b396fe0e7c1b85e9c69e46e.tar.xz
sl0ppij-68a8422457391ed03b396fe0e7c1b85e9c69e46e.zip
goodbye message through os_input
Diffstat (limited to 'src')
-rw-r--r--src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 96347935..f5fee096 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1093,6 +1093,9 @@ fn start(os_input: OsInputOutput) {
thread_handler.join().unwrap();
}
// cleanup();
- println!("\rBye from Mosaic!");
+ let reset_style = "\u{1b}[m";
+ let goodbye_message = format!("\r{}Bye from Mosaic!", reset_style);
+
+ os_input.get_stdout_writer().write(goodbye_message.as_bytes()).unwrap();
}