Fixing pty.spawn()
Hello, I've come to a problem with pty.spawn() as it states on its source code: # Bugs: No signal handling. Doesn't set slave termios and window size. As I need this feature working, I want to fix this bug. Does someone have any idea on how to fix it? (My problem: I want to launch ncurses software from my python software, then come back, choose another program and launch it, ...) -- Gustavo Sverzut Barbieri --------------------------------------- Computer Engineer 2001 - UNICAMP GPSL - Grupo Pro Software Livre Cell..: +55 (19) 9165 8010 Jabber: gsbarbieri@jabber.org ICQ#: 17249123 MSN: barbieri@gmail.com Skype: gsbarbieri GPG: 0xB640E1A2 @ wwwkeys.pgp.net
The attached patch calls ioctl() to set master_fd win size. I use fcntl and struct modules, I have hardcoded values from termios since this module is deleted. Is it ok? -- Gustavo Sverzut Barbieri --------------------------------------- Computer Engineer 2001 - UNICAMP GPSL - Grupo Pro Software Livre Cell..: +55 (19) 9165 8010 Jabber: gsbarbieri@jabber.org ICQ#: 17249123 MSN: barbieri@gmail.com Skype: gsbarbieri GPG: 0xB640E1A2 @ wwwkeys.pgp.net
participants (1)
-
Gustavo Barbieri