I've been working with curses and I ran across a problem that I'm hoping that I'm doing something wrong.

The problem setup is using curses create a stdscr and then put a subwin (win1) on that screen (with box() borders). Then try to add a character ('x') to the bottom right corner of win1 (which is the last row and the last character). The code to show this follows:

The curses.napms(500) and curses.napms(5000) simply hold the screen for a few seconds so you can see it. So am I doing something wrong?

Note: I updated the above because I found that the problem is any window so I just got rid of the second window (win2), but I kept the box in win1 to show that its the last character of the last line in the window (win1).