PowerShell/Docs/write-ascii-image.md

65 lines
2.1 KiB
Markdown
Raw Normal View History

2023-07-29 10:34:04 +02:00
*write-ascii-image.ps1*
================
2023-07-29 09:45:37 +02:00
write-ascii-image.ps1
2023-07-29 10:04:38 +02:00
Parameters
----------
2023-07-29 09:45:37 +02:00
```powershell
[<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
```
2023-07-29 10:04:38 +02:00
Script Content
--------------
2023-07-29 09:45:37 +02:00
```powershell
<#
.SYNOPSIS
Writes an ASCII image
.DESCRIPTION
This PowerShell script writes an ASCII image to the console.
.EXAMPLE
PS> .\write-ascii-image.ps1
.LINK
https://github.com/fleschutz/PowerShell
.NOTES
Author: Markus Fleschutz | License: CC0
#>
function WriteLine { param([string]$line)
Write-Host $line -foregroundColor green
}
WriteLine ""
WriteLine " _-o#&&*''''?d:>b\_"
WriteLine " _o/'`'' '',, dMF9MMMMMHo_"
WriteLine " .o&#' `'MbHMMMMMMMMMMMHo."
WriteLine " .o'' ' vodM*$&&HMMMMMMMMMM?."
WriteLine " ,' $M&ood,~'`(&##MMMMMMH\"
WriteLine " / ,MMMMMMM#b?#bobMMMMHMMML"
WriteLine " & ?MMMMMMMMMMMMMMMMM7MMM$R*Hk"
WriteLine " ?$. :MMMMMMMMMMMMMMMMMMM/HMMM|`*L"
WriteLine "| |MMMMMMMMMMMMMMMMMMMMbMH' T,"
WriteLine "$H#: `*MMMMMMMMMMMMMMMMMMMMb#}' `?"
WriteLine "]MMH# ''*''''*#MMMMMMMMMMMMM' -"
WriteLine "MMMMMb_ |MMMMMMMMMMMP' :"
WriteLine "HMMMMMMMHo `MMMMMMMMMT ."
WriteLine "?MMMMMMMMP 9MMMMMMMM} -"
WriteLine "-?MMMMMMM |MMMMMMMMM?,d- '"
WriteLine " :|MMMMMM- `MMMMMMMT .M|. :"
WriteLine " .9MMM[ &MMMMM*' `' ."
WriteLine " :9MMk `MMM#' -"
WriteLine " &M} ' .-"
WriteLine " `&. ."
WriteLine " `~, . ./"
WriteLine " . _ .-"
WriteLine " '`--._,dd###pp='''"
exit 0 # success
```
2023-10-19 08:12:00 +02:00
*(generated by convert-ps2md.ps1 using the comment-based help of write-ascii-image.ps1 as of 10/19/2023 08:11:43)*