vte_terminal_set_pty closes the pty without choice
Submitted by Michael Trausch
Link to original bug (#651910)
Description
I am trying to write a small Python program that uses VTE, and add ZMODEM support to it (I have occasion to use it every now and again where it is my only option). I'd eventually like to fold that into GNOME Terminal, but there is a problem: VTE needs to be told to not read/write the PTY while the rz command (at least for receiving, I haven't got to thinking about sending yet) is using the PTY.
Pseudocode to show what should be possible:
feed 'Starting ZMODEM' set_pty -1 execute 'rz' using the pty as stdin/stdout set_pty old_pty feed 'ZMODEM finished'
However, when set_pty is called the first time, it closes the PTY and thus it becomes invalid.
If rz attempts to use the PTY at the same time that VTE is using the PTY, however, it fails, because rz never sees the reply from the remote sz.
Perhaps the addition of a vte_terminal_set_pty_noclose function (or something with a different name but a similar purpose) would be useful?
Version: 0.24.x
Resolution: RESOLVED DUPLICATE