From 70eac33960b878e3010bbf69a9494dab8fb6749a Mon Sep 17 00:00:00 2001 From: Jason May Date: Sun, 13 Feb 2011 16:37:18 -0500 Subject: send term geometry to the server --- lib/App/Termcast.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/App/Termcast.pm b/lib/App/Termcast.pm index 629f78b..62aca38 100644 --- a/lib/App/Termcast.pm +++ b/lib/App/Termcast.pm @@ -150,7 +150,10 @@ sub _build_socket { } } + chomp( my ($cols, $lines) = (`tput cols`, `tput lines`) ); + $socket->syswrite($self->establishment_message); + $socket->syswrite("geom $cols $lines\nfinish\n\e[H\e[2J"); # ensure the server accepted our connection info # can't use _build_select_args, since that would cause recursion -- cgit v1.2.3-54-g00ecf