Filter shift, etc., from getch() in sdlcurse.cpp
Fix viewport sizing with SDL-based Linux builds