Set up terminal size and attributes properly so that pagers work properly