Title: Attributing Text Effects · Issue #11890 · PowerShell/PowerShell · GitHub
Open Graph Title: Attributing Text Effects · Issue #11890 · PowerShell/PowerShell
X Title: Attributing Text Effects · Issue #11890 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement Text Effects (font customization) allow you to place emphasis on text to lower or raise awareness to the user and improve data comprehension. They include, but not limited to, foreground and backgro...
Open Graph Description: Summary of the new feature/enhancement Text Effects (font customization) allow you to place emphasis on text to lower or raise awareness to the user and improve data comprehension. They include, bu...
X Description: Summary of the new feature/enhancement Text Effects (font customization) allow you to place emphasis on text to lower or raise awareness to the user and improve data comprehension. They include, bu...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11890
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Attributing Text Effects","articleBody":"# Summary of the new feature/enhancement\r\n\r\nText Effects (font customization) allow you to place emphasis on text to lower or raise awareness to\r\nthe user and improve data comprehension. They include, but not limited to, foreground and background\r\ncolors, bold, highlighting, strikethrough, and blinking.\r\n\r\nPowerShell should support Text effects in views and interactive sessions for data\r\ncomprehension and Accessibility. PowerShell should support, as most modern terminals, 24-bit True\r\nColor. Below are two scenario's for this need:\r\n\r\nAs a PowerShell user, I want to interactively use Text Effects for reporting and color emphasis. For\r\nexample, when a value exceeds defined limits to enhance data comprehension.\r\n\r\nAs a PowerShell Module builder, I want to take advantage of Text Effects for colorization, and\r\ncreate views for cmdlets to aid in data comprehension and overall Accessibility.\r\n\r\n# Proposed technical implementation details (optional)\r\n\r\nFor PowerShell users, Text Effects can be set in interactive sessions with calculated properties for\r\nthe purpose of accenting data with specific defined results. A new attribute `texteffect`, that is\r\nabbreviated `t`, follows the previous pattern for `alignment` (al) and avoids contention.\r\n\r\n```powershell\r\nGet-Service -Name bits | Select-Object -Property Name, @{n='State';e={$_.status};t={...}}\r\n```\r\n\r\nFor advanced module builders, Text Effects may be added to the formatting system PowerShell\r\ncurrently has in place. A new xml tag **TextEffect** will contain a script block.\r\n\r\n```powershell\r\n\u003cTableControl>\r\n \u003cTableHeaders>\r\n \u003cTableColumnHeader>\r\n \u003cLabel>AvailableSpace\u003c/Label>\r\n \u003cWidth>7\u003c/Width>\r\n \u003cAlignment>right\u003c/Alignment>\r\n \u003c/TableColumnHeader>\r\n \u003c/TableHeaders>\r\n\r\n \u003cTableRowEntries>\r\n \u003cTableRowEntry>\r\n \u003cTableColumnItems>\r\n \u003cTableColumnItem>\r\n \u003cScriptBlock>[String]($_.Freespace / 1024)\u003c/ScriptBlock>\r\n \u003cTextEffect>if ( $_.Freespace/1024 -lt 100mb ) { \"red\" }\u003c/TextEffect>\r\n \u003c/TableColumnItem>\r\n \u003c/TableColumnItems>\r\n \u003c/TableRowEntry>\r\n \u003c/TableRowEntries>\r\n\u003c/TableControl>\r\n```\r\n\r\n","author":{"url":"https://github.com/theJasonHelmick","@type":"Person","name":"theJasonHelmick"},"datePublished":"2020-02-19T20:22:51Z","url":"https://github.com/PowerShell/PowerShell/issues/11890"}
| 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:8b079b3b-b469-fdf0-03b2-a53ff7632d6f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C692:1ABC75:287D7BA:388B55A:6AFD5650 |
| html-safe-nonce | dfc063f823df92b3117d53b34b4927e65511b1e8d91f4da34945c85771ab8864 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjkyOjFBQkM3NToyODdEN0JBOjM4OEI1NUE6NkFGRDU2NTAiLCJ2aXNpdG9yX2lkIjoiNjQ2Nzc5MzkxMTQyNjE0MzgyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 822bb458439f84ee1187acf737f54202c03552639ecc93c5e9f6bd2fcd7e4750 |
| hovercard-subject-tag | issue:567823288 |
| 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/11890/issue_layout |
| twitter:image | https://opengraph.githubassets.com/da7f9bf049074a25f1269562b98c3e10f9310ee086a6969ab612d55786f4b19b/PowerShell/PowerShell/issues/11890 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/da7f9bf049074a25f1269562b98c3e10f9310ee086a6969ab612d55786f4b19b/PowerShell/PowerShell/issues/11890 |
| og:image:alt | Summary of the new feature/enhancement Text Effects (font customization) allow you to place emphasis on text to lower or raise awareness to the user and improve data comprehension. They include, bu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theJasonHelmick |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| 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 | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width