question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider moving the `$ErrorView` configuration to `$PSStyle`

See original GitHub issue

Summary of the new feature / enhancement

The $ErrorView variable was introduced earlier than $PSStyle. But with $PSStyle containing configuration like $PSStyle.Formatting and $PSStyle.Progress, it feels to me the error view configuration should be moved to $PSStyle as well, for consistency and easier discoverability.

Proposed technical implementation details (optional)

Discard the $ErrorView variable (breaking change), add the public property ErrorView to System.Management.Automation.PSStyle.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
iSazonovcommented, Aug 18, 2022

We could simplify codes if we moved $host.UI.SupportsVirtualTerminal detection in PSStyle too.

0reactions
dkaszewscommented, Jul 24, 2023

I would like to work on this, but I have another PR https://github.com/PowerShell/PowerShell/pull/18003 that is modifying $PSStyle that has been reviewed but not merged for almost a year, @daxian-dbw can you please resolve it first so I don’t merge-conflict myself?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using PowerShell with $PSStyle
In this post, I show you how you can use ANSI rendering to control text decorations, such as color and font styling, in...
Read more >
about Preference Variables - PowerShell
$ErrorView. Determines the display format of error messages in PowerShell. The $ErrorView variable takes one of the ErrorView enumeration values ...
Read more >
7.2.md - PowerShell/PowerShell
General Cmdlet Updates and Fixes. Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format ...
Read more >
"Fossies" - the Fresh Open Source Software Archive
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C# source code syntax highlighting...
Read more >
about ANSI terminals - PowerShell
Describes the features of PowerShell that use ANSI escape sequences and the terminal hosts that support them.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found