Resize window bug
Brought to you by:
sleepycat
When resizing the terminal window, 0xFF characters get inserted into the current buffer.
I still haven't tracked this down. It could be part of the special string that gnome-terminal sends to inform the program of resize events - it could be ncurses returning a -1 or ERR.
Oddly enough, I can't trap it with a binding. Something odd and low-level is going on here.