aboutsummaryrefslogtreecommitdiffstats
path: root/termcast_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'termcast_client.py')
-rw-r--r--termcast_client.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/termcast_client.py b/termcast_client.py
index 661f803..2e6ad6c 100644
--- a/termcast_client.py
+++ b/termcast_client.py
@@ -1,7 +1,7 @@
import argparse
import json
import os
-import pty
+import pity
import shutil
import socket
import sys
@@ -17,7 +17,11 @@ class Client(object):
sock = socket.socket()
sock.connect((self.host, self.port))
sock.send(self._build_connection_string())
- pty.spawn(argv, lambda fd: self._master_read(fd, sock))
+ pity.spawn(
+ argv,
+ lambda fd: self._master_read(fd, sock),
+ handle_window_size=True
+ )
def _master_read(self, fd, sock):
data = os.read(fd, 1024)