5

How can I resize curses pad, created with newpad? There is window.resize function and although window is similar object as pad, nothing explicitly says I can use this function to resize pad.

Pablo
  • 28,133
  • 34
  • 125
  • 215

1 Answers1

3

Yes you can call "resize()" on a pad object. It is another type of "window" object in the Python curses model. The thing about Python's "pad" objects is that their .refresh() method is rather non-intuitive (and poorly documented). I can get it working, but I still find the six argument tuple that it requires to be baffling.

Jim Dennis
  • 17,054
  • 13
  • 68
  • 116