Shell: Basic curses setup with terminal resizing support