Describe the bug
The console object's legacy_windows is True when is_terminal is False. I think this is a bug, because it's unable to successfully calling Windows console API on non-terminal environment.
# foo.py
from rich.console import Console
console = Console()
print(console.legacy_windows)
> python foo.py
False
> python foo.py | echo
True
Platform
I use terminal in VS Code on Windows 10.