diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-19 13:09:21 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-19 13:09:21 -0400 |
commit | f42f8d325273ff4d387c966c8cdb57b0bf92d3e8 (patch) | |
tree | 6da3d353a1ef7ad6fc2244b120616d7b2344a41a | |
parent | def954fba185eae5773e9d81082d78e7ecc00f6a (diff) | |
download | teleterm-f42f8d325273ff4d387c966c8cdb57b0bf92d3e8.tar.gz teleterm-f42f8d325273ff4d387c966c8cdb57b0bf92d3e8.zip |
tweak watch ui
-rw-r--r-- | src/cmd/watch.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cmd/watch.rs b/src/cmd/watch.rs index 4666abc..284fc0e 100644 --- a/src/cmd/watch.rs +++ b/src/cmd/watch.rs @@ -521,7 +521,15 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> idle_width, watch_width, ); - println!("{}\r", "-".repeat(sessions.size().cols as usize)); + println!( + "{}+{}+{}+{}+{}+{}\r", + "-".repeat(char_width + 1), + "-".repeat(name_width + 2), + "-".repeat(size_width + 2), + "-".repeat(idle_width + 2), + "-".repeat(watch_width + 2), + "-".repeat(max_title_width + 1) + ); let mut prev_name: Option<&str> = None; for (c, session) in sessions.visible_sessions_with_chars() { |