diff options
author | Jason May <jason.a.may@gmail.com> | 2011-02-13 16:37:18 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-04-14 01:19:02 -0500 |
commit | 70eac33960b878e3010bbf69a9494dab8fb6749a (patch) | |
tree | fa5d9612b18eb7c245d8f95699b8c318b0f5cb29 | |
parent | d48def2fc36aac1a0a9d9f19b09748c4eb3f14cd (diff) | |
download | app-termcast-70eac33960b878e3010bbf69a9494dab8fb6749a.tar.gz app-termcast-70eac33960b878e3010bbf69a9494dab8fb6749a.zip |
send term geometry to the server
-rw-r--r-- | lib/App/Termcast.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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 |