fix tab-completion in the console when output is tee'd