need to suppress nuisance output of xterm -Sccn
I'm attempting to use an xterm to facilitate user I/O for an application via the master side of a pty. I need xterm to use an already-open fd instead of creating a new pty; therefore, I'm using -S. It seems like a sloppy option, but I dup2 the master side of the pty to 0, 1, and 2, then call xterm -S/0. This has the desired effect except that it always prints an (arbitrary?) integer to the destination file descriptor (fd 0, from -S/0,) which then gets picked up as the first line of input at the other end. Is there a different option that would work better, an option that will disable this output, or a different (fairly common) emulator that would work better? Thanks.
edit: apparently this is a "feature" (or forgotten debugging output) that gives the window ID of the new xterm. It doesn't seem like it can be redirected, so I might just have to read and discard it from the process on the slave side of the pty.
yes, xterm sends back the window id first, as part of the pty-handshake.
the multixterm script for example takes this into account.
|All times are GMT -5. The time now is 04:26 AM.|