Open
Description
Command-prompt windows, besides PowerShell and CMD.exe, should be detected.
If the terminal window supports ANSI (but not Windows console colors) then fallback to emitting ANSI color/control codes. If the console doesn't support color at all, or it can't be determined, then fallback to a no-color plain ASCII/Unicode output.
This will eliminate garbage on the display.