core: don't output \e[0K on Windows [GH-2246]