From 22cdbaff8decb09bc189a5a29e4c239801a402cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 25 Apr 2021 18:04:16 +0200 Subject: dont write newlines --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index ea7830c..44b33d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,9 +44,10 @@ fn show_threads(stdout: &mut RawTerminal, threads: &Vec, highlig if highlight { write!(stdout, "{}", color::Fg(color::Red)).unwrap(); } - writeln!(stdout, "{}", thread).unwrap(); + write!(stdout, "{}", thread).unwrap(); if highlight { write!(stdout, "{}", color::Fg(color::Reset)).unwrap(); } } + stdout.flush().unwrap(); } -- cgit v1.2.1