ncursesパッドをPython(2.6、2.7、および3.2)で動作させることができないようです。http://docs.python.org/howto/curses.htmlから直接コードを使用すると、コードを機能させることさえできません。非パッドコードは完全に機能します。
import curses
def func(scr):
pad = curses.newpad(100, 100)
pad.addstr(0,0, "Testing")
# Displays a section of the pad in the middle of the screen
pad.refresh( 0,0, 5,5, 10,10)
scr.refresh()
scr.getch()
if __name__ == '__main__':
curses.wrapper(func)
問題は何でしょうか?パッドの取り外し(およびパッドのscrへの変更)は正常に機能します