Fix setting of PAGER and only bother setting EDITOR & VISUAL if running in a Terminal/not over SSH