aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-17 13:06:50 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-17 13:06:50 -0400
commit83daeee61257e971fd3ae105ea9d8b4e811eb272 (patch)
tree50f29caf1705341c37cba61e37399f9870049f12
parent4c3c6bf163b1b26fa883e724463dafa8ccbbdd0d (diff)
downloadpython-termcast-server-83daeee61257e971fd3ae105ea9d8b4e811eb272.tar.gz
python-termcast-server-83daeee61257e971fd3ae105ea9d8b4e811eb272.zip
make the viewer screen fit on 80x24
-rw-r--r--ssh.py4
1 files changed, 2 insertions, 2 deletions
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
)