Thanks for the fix above Thomas, worked brilliantly.
I have recently had to come back to this issue though. I was wondering since I have written my own character driver and use newterm(...) to connect ncurses is there a return code (errno) I can use from my drivers write function that can tell ncurses the screen has become corrupt and ncurses should redraw the buffer (something like ECONNRESET). ATM I use a sysfs attribute as a side band communication to do this and poll it which is not that great.
Thanks