PSWriteColorEX

1.0.0

Advanced PowerShell module for colored console output with comprehensive ANSI support including TrueColor (24-bit RGB), style profiles, cross-platform compatibility, and extensive logging capabilities.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSWriteColorEX

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSWriteColorEX

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2024 MarkusMcNugen. All rights reserved.

Package Details

Author(s)

  • MarkusMcNugen

Tags

Console Color Colour ANSI Terminal Output Formatting Logging TrueColor RGB CrossPlatform Windows Linux macOS

Functions

Write-ColorEX Write-ColorError Write-ColorWarning Write-ColorInfo Write-ColorSuccess Write-ColorCritical Write-ColorDebug Set-ColorDefault Get-ColorProfiles New-ColorStyle Test-AnsiSupport Convert-HexToRGB Convert-RGBToANSI8 Convert-RGBToANSI4 Get-ColorTableWithRGB Measure-DisplayWidth Lighten-RGBColor Lighten-ColorName Lighten-ANSI8Color

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

PSWriteColorEX - Advanced colored console output with comprehensive ANSI support

FEATURES:
- TrueColor (24-bit RGB) support with 16.7 million colors
- Multi-stop gradient colors with character-by-character interpolation
- Unicode-aware text padding (AutoPad) for perfect table alignment
- Style profiles: Error, Warning, Info, Success, Critical, Debug
- Automatic terminal detection with graceful color degradation
- Cross-platform: Windows, Linux, macOS
- Bold font support detection with automatic color lightening
- Comprehensive logging with timestamps and log levels
- Performance optimized with extensive caching (1000x-18000x improvements)
- Helper functions: Write-ColorError, Write-ColorWarning, Write-ColorInfo, Write-ColorSuccess, Write-ColorCritical, Write-ColorDebug
- 70+ color families with Dark/Normal/Light variants
- Hex color support (#RRGGBB format)
- RGB array support @(R, G, B)
- Default style configuration with Set-ColorDefault
- Compatible with PowerShell 5.1+ (Desktop and Core editions)

TERMINAL SUPPORT:
- Windows: Windows Terminal, PowerShell Console (conhost), ConEmu, VS Code, Git Bash
- macOS: iTerm2, Terminal.app, VS Code
- Linux: GNOME Terminal, Konsole, xterm, rxvt-unicode, Kitty

For full documentation visit: https://github.com/MarkusMcNugen/PSWriteColorEX

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 4 11/2/2025