瀏覽代碼

Print some empty lines between actions

Santiago Pastorino 4 年之前
父節點
當前提交
c5efbaa6b6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/bin/prioritization.rs

+ 3 - 1
src/bin/prioritization.rs

@@ -18,11 +18,13 @@ async fn main() {
 fn press_key_to_continue() {
     let mut stdout = io::stdout();
     stdout
-        .write(b"[Press Enter to continue]")
+        .write(b"\n\n[Press Enter to continue]\n")
         .expect("Unable to write to stdout");
     stdout.flush().expect("Unable to flush stdout");
 
     io::stdin()
         .read_line(&mut String::new())
         .expect("Unable to read user input");
+
+    stdout.write(b"\n").expect("Unable to write to stdout");
 }