pudb icon indicating copy to clipboard operation
pudb copied to clipboard

Find solution for limited term-size

Open cool-RR opened this issue 8 years ago • 2 comments

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?

cool-RR avatar Mar 30 '17 18:03 cool-RR

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.

asmeurer avatar Mar 30 '17 21:03 asmeurer

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.

inducer avatar Mar 31 '17 16:03 inducer