Install
PwshSpectreConsole is a wrapper for the awesome Spectre Console which you can use to make your PowerShell scripts more interesting.
Install PwshSpectreConsole from PSGallery using the following command in your terminal (this requires PowerShell 7+):
Install-Module PwshSpectreConsole -Scope CurrentUser
đź‘» Emoji Support and Line Drawing
With the default configuration Windows Terminal and the older console host don’t support the full range of Spectre Console features. It will still work but you will find it doesn’t look quite like all the examples.
To get the full feature set:
- Use Windows Terminal instead of the old console host.
- Install a NerdFont, a font with additional visual characters. I use “Cascadia Cove NF” from https://www.nerdfonts.com/
- Enable full unicode by adding
$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding
as the FIRST LINE in your $PROFILE file.
For more details see the instructions on the official Spectre Console site to configure Windows Terminal for full Unicode and Emoji support.