set 'altscreen on' in .screenrc