Added auto-pager when output is to a terminal