Checking whether the output is a tty is done before checking whether the pager was on, so colours were wrong for some setups

Created by  pmeunier  on February 26, 2021
JRFPXWID6GZNSXG3DA3E4TZR6X5V3JJ3GZOO774WFMZS5ZH5BIMQC
Change contents