Powershell ANSI Escape Sequences
This module contains classes and functions for doing ANSI colored output using Virtual Terminal escape sequences in the console from .Net and PowerShell on platforms where they are supported: Windows 10, Linux, OS X, etc.
I ♥ PS> function prompt { "I $(New-Text "♥" -fg "DarkRed") PS> " }
The goal of this project is to experiment with some classes and interfaces to try and address PowerShell #2381 and give PowerShell full RGB support for Write-Host, but also provide full color support in format files, etc.
It requires PowerShell 5 or higher and an ANSI-capable host like xTerm, the Windows 10 Console, or ConEmu. If you can satisfy those requirements, you can install it from the gallery:
Install-Module Pansies -AllowClobber
If you have troubles, please file issues:
There are two submodules being used (my personally modified versions of ColorMine and p2f), but it's very simple to get them all and compile them.
Compiling Pansies requires the .NET Command Line Tools (v2.0.2 or newer) and my Configuration module.
With those dependencies preinstalled and on your path, you can just:
git clone --recursive https://github.com/PoshCode/Pansies.git
.\Pansies\Build.ps1
Note: if you have an older copy of the repository (prior to me including ColorMine and p2f as submodules), you can update from the Pansied folder with:
git submodule update --init -recursive
See the Docs/Pansies.md