Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start-Transcript should have an option to produce color-preserving output #11567

Closed
sba923 opened this issue Jan 13, 2020 · 7 comments
Closed
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-No Activity Issue has had no activity for 6 months or more

Comments

@sba923
Copy link
Contributor

sba923 commented Jan 13, 2020

Typical PowerShell script output (especially when debugging, using the various output streams...) is "usefully colorized."

Alas, Start-Transcript only captures a non-formatted, "monochrome" version of the output.

It would be great IMVHO to have the option of generating formatted (RTF and/or HTML) output preserving the colors.

As an example, MobaXterm saves terminal output as RTF, preserving the colors of the emulated terminal's output.

@sba923 sba923 added the Issue-Enhancement the issue is more of a feature request than a bug label Jan 13, 2020
@SteveL-MSFT
Copy link
Member

I guess the question is whether you actually want to retain color (which would be ANSI escape sequences) or really just want an easier way to view transcripts? For example, Get-Content could have a transcript mode that colorizes strings starting with DEBUG:, VERBOSE: etc.... Or ConvertTo-Html could also have special logic to understand transcripts and output color.

Transcription currently makes an effort to not preserve color and I'm not sure if preserving the ANSI escape sequences really solves your specific problem as they would only be useful viewed in a terminal that understands ANSI.

@kilasuit
Copy link
Collaborator

@SteveL-MSFT perhaps it's time to spit out a Markdown file for the transcript instead of plaintext?

@AlexHimself
Copy link

Where did this land?

Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

2 similar comments
Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-No Activity Issue has had no activity for 6 months or more labels Nov 16, 2023
Copy link
Contributor

This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-No Activity Issue has had no activity for 6 months or more
Projects
None yet
Development

No branches or pull requests

4 participants