Pansies
2.10.0-dev0001
A PowerShell module for handling color and cursor positioning via ANSI escape sequences
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2017 Joel Bennett. All rights reserved.
Package Details
Author(s)
- Joel Bennett
Tags
ANSI EscapeSequences VirtualTerminal Color
Cmdlets
New-Text New-Hyperlink Write-Host Get-Gradient Get-Complement Get-ColorWheel
PSEditions
Dependencies
This module has no dependencies.
Release Notes
Pansies v2.10.0-dev0001+Build.0.Date.2024-09-09.Branch.unknown.Sha.9c97965
2.6.1: Fix a bug decoding entities when the & is the last character in the string
2.6.0: Added an argument completer for the X11Palette:
function Get-Greeting {
param(
[ArgumentCompleter([PoshCode.Pansies.Palettes.X11Palette])]
[RgbColor]$color,
[string]$message = "Hello World"
)
"$($color.ToVt())$message"
}
2.5.0: Add an X11ColorName constructor so you can cast [RgbColor]"Goldenrod"
2.4.0: Switch to IPSMetadata serialization
- Also add some cast constructors
- Also add pipeline parameterSets for Get-Complement and Get-Cradient
- Also minimize the whitespace when outputting color formatted
- Also enabled emoji and nerdfont entities by default
2.3.1: Fix index problem decoding entities
2.3.0: Add emoji support
- Also add nerdfont support
2.2.0: Add static methods for speed optimization
2.1.0: Hyperlinks
- Added New-Hyperlink (alias URL) now that Windows Terminal supports them.
Note that Windows Console (conhost) _does not_ support hyperlinks, and any terminal which does not will ignore them.
For compatibility, always use the Uri as the text (i.e. do not pass the object parameter).
- Added -PersistentColor option to reset the Foreground and Background for each object output when outputting arrays.
2.0.0: Breaking change for the library:
- Merge the "Colormine" namespace into PoshCode.Pansies
Originally, this was a 3rd party MIT licensed library by @THEJoeZack.
He pulled his repo, so I am now just integrating it into Pansies
- Expose Complement and Gradient in the C# library for others to use
- Add GetComplement() method to RgbColor
- Add PoshCode.Pansies.Gradient class with GetGradient static method
- Add Get-Complement and Get-Gradient wrappers in module assembly
1.3.0: The color provider release
- Add a RgbColor PSProvider that can convert colors to their escape sequences
- Add Fg: drive and Bg: drive so you can "$Fg:Red$Bg:Blue$YourMessage"
- Add support for x11 color names to make the drives more useful
1.2.2: Use full namespace + class name for RgbColor
1.2.1: Fix cmdlet export so New-Text and Write-Host show back up
Make EXTERNALHELP work for functions
Provide help for Get-Complement
1.2.0: Better support for using ConsoleColors
Added Get-Complement to calculate the HSL complement or contrasting colors
Fixed ConsolePalette so it reads the current console colors when possible
1.1.0: Support for serialization by the Configuration module
Fix output of "bright" color object in ConEmu (workaround ConEmu bug)
1.0.0: Pre-release version with support for RGB colors
FileList
- Pansies.nuspec
- lib\Pansies.dll
- Pansies.format.ps1xml
- Pansies.psd1
- Pansies.psm1
- lib\CodeOwls.PowerShell.Paths.dll
- lib\CodeOwls.PowerShell.Provider.dll
- lib\Pansies.deps.json
Version History
Version | Downloads | Last updated |
---|---|---|
2.11.0 | 12,513 | 10/14/2024 |
2.10.0-dev0001 (current version) | 9 | 9/10/2024 |
2.6.1 | 69,170 | 7/18/2023 |
2.6.0 | 11,251 | 8/18/2022 |
2.5.0 | 12 | 8/18/2022 |
2.4.0 | 274 | 8/11/2022 |
2.4.0-serial... | 16 | 7/18/2022 |
2.3.1 | 9,009 | 8/28/2021 |
2.3.0 | 1,598 | 7/19/2021 |
2.3.0-emoji0002 | 10 | 7/19/2021 |
2.1.1 | 4,855 | 1/20/2021 |
2.1.0 | 1,972 | 10/3/2020 |
2.0.0 | 3,149 | 5/8/2020 |
1.4.0-beta03 | 395 | 9/8/2018 |
1.4.0-beta02 | 20 | 9/6/2018 |
1.4.0-beta01 | 52 | 9/4/2018 |
1.3.0 | 758 | 4/13/2020 |
1.3.0-beta01 | 42 | 7/23/2018 |
1.2.1 | 14,287 | 10/10/2017 |
1.2.0 | 23 | 10/10/2017 |
1.0.0 | 1,298 | 5/11/2017 |