From 8e23e0adeddd0d3fac952b46e256ed818dda0ed1 Mon Sep 17 00:00:00 2001 From: Sven Schober Date: Sat, 28 Oct 2023 12:00:56 +0200 Subject: [PATCH] fix wezterm hang by not waiting on cmd response wezterm does not send a response to the image display command, so the termpdf.py read command hangs indefinitely, making it unresponsive. this fix replaces the call to write_gr_cmd_with_response by a call to write_gr_cmd, which does not wait for a response. --- termpdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/termpdf.py b/termpdf.py index 96ee9e0..944d853 100755 --- a/termpdf.py +++ b/termpdf.py @@ -681,7 +681,7 @@ def display_page(self, bar, p, display=True): self.clear_page(self.prevpage) # display the image cmd = {'a': 'p', 'i': p + 1, 'z': -1} - success = write_gr_cmd_with_response(cmd) + success = write_gr_cmd(cmd) if not success: self.page_states[p].stale = True bar.message = 'failed to load page ' + str(p+1)