From 83daeee61257e971fd3ae105ea9d8b4e811eb272 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 17 Sep 2014 13:06:50 -0400 Subject: make the viewer screen fit on 80x24 --- ssh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ssh.py') diff --git a/ssh.py b/ssh.py index ac8a3ec..2e290bb 100644 --- a/ssh.py +++ b/ssh.py @@ -108,7 +108,7 @@ class Connection(object): def _display_streamer_screen(self, streamers): self.chan.send("\033[H\033[2JWelcome to Termcast!") self.chan.send( - "\033[3H %-20s %-15s %-10s %-15s %-15s" % ( + "\033[3H %-20s %-15s %-10s %-12s %-15s" % ( "User", "Terminal size", "Viewers", "Idle time", "Total time" ) ) @@ -128,7 +128,7 @@ class Connection(object): size_pre = "\033[31m" size_post = "\033[m" self.chan.send( - "\033[%dH%s) %-20s %s%-15s%s %-10s %-15s %-15s" % ( + "\033[%dH%s) %-20s %s%-15s%s %-10s %-12s %-15s" % ( row, key, name, size_pre, size, size_post, viewers, idle, total ) -- cgit v1.2.3-54-g00ecf