mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-14 14:58:47 +02:00
Update descriptions
This commit is contained in:
@ -2,16 +2,16 @@
|
||||
.SYNOPSIS
|
||||
write-marquee.ps1 [<text>] [<speed>]
|
||||
.DESCRIPTION
|
||||
Writes the given text as marquee.
|
||||
Writes the given text as marquee
|
||||
.EXAMPLE
|
||||
PS> .\write-marquee.ps1 "Hello World"
|
||||
PS> ./write-marquee "Hello World"
|
||||
.NOTES
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
#>
|
||||
|
||||
param([string]$Text = "PowerShell is powerful! PowerShell is cross-platform! PowerShell is open-source! PowerShell is easy to learn! Powershell is fully documented", [int]$Speed = 60) # 60 ms pause
|
||||
param([string]$text = "PowerShell is powerful! PowerShell is cross-platform! PowerShell is open-source! PowerShell is easy to learn! Powershell is fully documented", [int]$speed = 60) # 60 ms pause
|
||||
|
||||
function StartMarquee { param([string]$text)
|
||||
$Length = $text.Length
|
||||
@ -30,12 +30,12 @@ function StartMarquee { param([string]$text)
|
||||
$HOST.UI.RawUI.CursorPosition = $StartPosition
|
||||
$TextToDisplay = $text.Substring($Pos, 80)
|
||||
write-host -nonewline $TextToDisplay
|
||||
start-sleep -milliseconds $Speed
|
||||
start-sleep -milliseconds $speed
|
||||
}
|
||||
write-output ""
|
||||
write-output ""
|
||||
write-output ""
|
||||
}
|
||||
|
||||
StartMarquee " +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ $Text +++ "
|
||||
StartMarquee " +++ $text +++ $text +++ $text +++ $text +++ $text +++ $text +++ $text +++ $text +++ $text +++ $text +++ $text +++ $text +++ "
|
||||
exit 0
|
||||
|
Reference in New Issue
Block a user