Move TERM_HEIGHT and TERM_WIDTH to properties instead of constants.