pudb
pudb copied to clipboard
Find solution for limited term-size
Hi,
I want to use PuDB's remote debugging capability. I tried it, and it works (which is amazing!) but the fact that I have to determine the term size in advance is a problem. I'm using this for a tool that all my team members could use, and each of them would use a different sized-window. Any idea how to solve this problem?
According to https://unix.stackexchange.com/questions/207782/how-are-terminal-length-and-width-forwarded-over-ssh-and-telnet and https://www.ietf.org/rfc/rfc1073.txt, telnet should forward SIGWINCH, but I played around with disabling the fixed screen size and couldn't get the PuDB remote debugger to automatically use the correct terminal size or do anything when resizing the window.
We would have to filter the data coming in over the telnet socket and watch for the relevant sequence. Urwid doesn't currently handle it, it seems.