spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.
https://spectreconsole.net
MIT License
8.9k stars 454 forks source link

Unable to redirect output to file #1540

Open 84961 opened 1 month ago

84961 commented 1 month ago

Information

Describe the bug Trying to run the console app and redirect the output to file consoleapp.exe > dump.ansi

To Reproduce Steps to reproduce the behavior.

Expected behavior should be able to view the file in powershell using type dump.ansi -Encoding oem

Screenshots The file is showing as image

Additional context Add any other context about the problem here.


Please upvote :+1: this issue if you are interested in it.

patriksvensson commented 1 month ago

Looks like your terminal doesn't support ansi escape codes or the encoding you've selected messes something up. I'm afraid this is outside the scope of the project.