spectreconsole / spectre.console

A .NET library that makes it easier to create beautiful console applications.

Home Page:https://spectreconsole.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to redirect output to file

84961 opened this issue · comments

Information

  • OS: [eg Windows/Linux/MacOS]
  • Version: [e.g. 0.33.0]
  • Terminal: [e.g Windows Terminal]

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 👍 this issue if you are interested in it.

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.