about summary refs log tree commit diff
path: root/saneterm
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-05-22 13:29:56 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2021-05-22 13:29:56 +0200
commite457cd88660512e6744fa75a1cc34d6d0b5f1358 (patch)
treec2bc2a275f2d2cf0140236780f510af27ab6047a /saneterm
parente51f33f20c5f084b2fdf507653080b71c37c2704 (diff)
Add comment regarding potential quirk of interrupt method
Diffstat (limited to 'saneterm')
-rw-r--r--saneterm/terminal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/saneterm/terminal.py b/saneterm/terminal.py
index fbd5831..8e929de 100644
--- a/saneterm/terminal.py
+++ b/saneterm/terminal.py
@@ -91,3 +91,7 @@ class Terminal(Gtk.Window):
     def interrupt(self, termview):
         cc = termios.tcgetattr(self.pty.master)[-1]
         os.write(self.pty.master, cc[termios.VINTR])
+
+        # XXX: Clear line-based buffer here (i.e. update the
+        # marks in TermView) in case the application doesn't
+        # write anything to the PTY on receiving VINTR.