Python3 curses behavior

Vlasov Vitaly vnigtha at
Sat Feb 9 12:23:28 CET 2013


I found strange behavior of curses module, that i can't understand. I initialize screen with curses.initscr(), then i create subwin of screen with screen.subwin(my_subwin_sizes). After that i fill subwin with my_char in for-loop. On last char in last line subwin.addch() raises exception.

This is my problem. Why? How to fix it?

(If i will ignore exception, then last char will be displayed)

Here simple example:

Thank You!

More information about the Python-list mailing list