Automatically ste the width and height of the screen based on values reported by ncurses