Considering the date of the original post, its probably sorted...
I'm having "similar issues" - but looking at your code example I cant see the line
refresh()
which I understand you have to include after writing to the curses screen...
Thanks for your code example though, its helped me
