Skip to content
ConsoleMonster
Cmdlet

New-ConsoleLogo

Module
ConsoleMonster
Outputs
ConsoleMonster.Widgets.Logo

Creates banner text drawn with a pixel font and a colour gradient.

Syntax

New-ConsoleLogo
[-Alignment <Left|Center|Right>]
[-EndColor <String>]
[-StartColor <String>]
[-Tagline <Object>]
[-Text] <String>
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Letters A-Z, digits and - . : ! / _ are drawn with half blocks (four rows tall) on modern and Consolas fonts, and with # in ASCII mode. Colours accept names, #hex or rgb().

Examples

Example 1

$logoOptions = @{
    Text = 'DEPLOY'
    Tagline = 'production · 14 servers'
    StartColor = '#22d3ee'
    EndColor = '#a78bfa'
}
New-ConsoleLogo @logoOptions | Show-Console

A banner with a tagline

Example 2

$logoOptions = @{
    Text = 'Fleet'
    Tagline = 'Inventory checks'
}
New-ConsoleLogo @logoOptions | Show-Console

Print a fleet heading and tagline

Example 3

Get-ConsoleDemo -Slug 'welcome-rich' | Select-Object -ExpandProperty Source

Read the gallery script to see New-ConsoleLogo in a complete example. Each lookup returns the script's source. Use the same slug with Show-ConsoleDemo to run it.

Parameters

-Alignment HorizontalAlignment optional
Alignment: Left, Center or Right.
Possible values: Left, Center, Right
-EndColor String optional
Gradient end colour.
-StartColor String optional
Gradient start colour.
-Tagline Object optional
A muted tagline under the banner (markup allowed).
-Text String requiredposition: 0
The literal heading drawn with the selected banner font.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.