about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-05-20 01:56:27 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2021-05-20 01:56:27 +0200
commitea0a344d92de294d80a9544b922d8bceb128f2e9 (patch)
tree6ec9c03990d349abedf67fb6ba6412b2c6099fb9
parente33ab273bdec3006fb9f6b93b8c7bea47a7a02c3 (diff)
Read up-to 4096 bytes in handle_pty callback
-rw-r--r--saneterm/terminal.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/saneterm/terminal.py b/saneterm/terminal.py
index b485fb4..c1d99ba 100644
--- a/saneterm/terminal.py
+++ b/saneterm/terminal.py
@@ -77,8 +77,7 @@ class Terminal(Gtk.Window):
             Gtk.main_quit()
             return GLib.SOURCE_REMOVE
 
-        # XXX: Should be possible to read more than one byte here.
-        data = os.read(master, 1)
+        data = os.read(master, 4096)
         if not data:
             raise AssertionError("expected data but did not receive any")