public/Get-Underline.ps1
function Get-Underline { <# .SYNOPSIS Apply VT-100 modifiers to a string to format it in underline. .PARAMETER Value The string to format. .OUTPUTS The formatted string (with VT-100 modifiers). #> param ( [Parameter(ValueFromPipeline = $true)] [string] $Value ) process { Get-FormattedText ` -Value $Value ` -PreModifier $script:TEXT_UNDERLINE ` -PostModifier $script:TEXT_NO_UNDERLINE } } |