This series provides fixes for the following issues: - issue2871: Piping hg commands on Windows with color extension enabled fails - issue2792: color+pager: wrong mode detected in screen, rxvt and others