Non riesco a far funzionare ncurses pad in python (2.6, 2.7 e 3.2). Utilizzo del codice direttamente su http://docs.python.org/howto/curses.html Non riesco nemmeno a farlo funzionare. Il codice non pad funziona perfettamente.(n) pad curses in python non funziona
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)
Quale può essere il problema? Rimuovere il pad (e cambiare pad in scr) funziona bene
Quale piattaforma stai usando? –
Linux, Ubuntu 12.04 per 2.7 e 3.2 e Debian 6.0 per 2.6 – byteit101