Protected ncurses mouse code.