Title: Formatting doesn't handle the property with ANSI escape sequence string value properly, which leads to color leaking · Issue #17157 · PowerShell/PowerShell · GitHub
Open Graph Title: Formatting doesn't handle the property with ANSI escape sequence string value properly, which leads to color leaking · Issue #17157 · PowerShell/PowerShell
X Title: Formatting doesn't handle the property with ANSI escape sequence string value properly, which leads to color leaking · Issue #17157 · PowerShell/PowerShell
Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report N/A Screenshot Environment data PS Version: 5.1.19041.1...
Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report N/A Screenshot ...
X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report N/A Screenshot ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17157
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Formatting doesn't handle the property with ANSI escape sequence string value properly, which leads to color leaking","articleBody":"### Prerequisites\n\n- [X] Write a descriptive title.\n- [X] Make sure you are able to repro it on the [latest released version](https://www.powershellgallery.com/packages/PSReadLine)\n- [X] Search the existing issues, especially the pinned issues.\n\n### Exception report\n\n```console\nN/A\n```\n\n\n### Screenshot\n\n\r\n\r\n\r\n\n\n### Environment data\n\n```console\nPS Version: 5.1.19041.1645\r\nPS HostName: ConsoleHost\r\nPSReadLine Version: 2.2.2\r\nPSReadLine EditMode: Windows\r\nOS: 10.0.19041.1 (WinBuild.160101.0800)\r\nBufferWidth: 106\r\nBufferHeight: 3000\n```\n\n\n### Steps to reproduce\n\nHappens on PS 5.1 console and Windows Terminal app (cannot reproduce with the ISE nor PowerShell 7.2.2)\r\n\u003cbr>\r\n\r\n**To reproduce:**\r\n1. Type `Get-PSReadlineOption | Format-List *`\r\n\r\n\r\n\u003cbr>\r\n\r\n**To resolve:**\r\n\r\n1. Type `Get-PSReadLineOption` (without `| Format-List *`) and color scheme is restored after the property `CommandColor` is listed on-screen. See bottom screenshot for a better explanation of this.\n\n### Expected behavior\n\nColor scheme should remain constant\n\n### Actual behavior\n\n- Console color scheme now appears like the `ListPredictionSelectedColor` color scheme\r\n- Missing property values (see screenshot)\r\n- Clearing the screen/changing console size doesn't resolve the issue.","author":{"url":"https://github.com/thegraffix","@type":"Person","name":"thegraffix"},"datePublished":"2022-04-16T01:29:39Z","url":"https://github.com/PowerShell/PowerShell/issues/17157"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7fd26f71-3984-1e9f-c299-3bcb73bb4ed5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84BA:84557:316C8A:44175F:6AFDA452 |
| html-safe-nonce | 533829839fbe6f0ba5b7e0d5325ca5f8a1a7781603acb5166184937726885275 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEJBOjg0NTU3OjMxNkM4QTo0NDE3NUY6NkFGREE0NTIiLCJ2aXNpdG9yX2lkIjoiMjk5NTM1NzEzMzcyMjk4NTU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca9ae7ab05ee55567b4897be3e165dcea61817226c09d253e8b5fd44858a109f |
| hovercard-subject-tag | issue:1207243483 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/17157/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e102829b82fce8f1fb20192084e6877d81663551256339864b5f0e3c6b974351/PowerShell/PowerShell/issues/17157 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e102829b82fce8f1fb20192084e6877d81663551256339864b5f0e3c6b974351/PowerShell/PowerShell/issues/17157 |
| og:image:alt | Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues, especially the pinned issues. Exception report N/A Screenshot ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | thegraffix |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width