File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 11function Write-Type {
2+ <#
3+ . Synopsis
4+ Make Write-Host text appear as if it is being typed
5+
6+ . DESCRIPTION
7+ Input text and if desired specify the write speed (25-500 milliseconds) and foreground color for the text
8+
9+ . EXAMPLE
10+ Write-Typewriter 'Hello world!'
11+
12+ . EXAMPLE
13+ Write-Typewriter 'Hello world!' 250
14+
15+ . EXAMPLE
16+ Write-Typewriter -Text '2 spooky 4 me!' -TypeSpeed 400 -ForegroundColor 'Red'
17+
18+ . NOTES
19+ v1.1 - 2016-04-04 - Nick Rodriguez
20+ -Changed name
21+ -Changed TypeSpeed range
22+ -Added ForegroundColor param
23+ -Changed sleep to not use method after seeing it slow performance with Measure-Command
24+ -Changed code formatting to my liking
25+
26+ v1.0 - 2016-01-25 - Nathan Kasco (http://poshcode.org/6193)
27+ #>
28+
229 [CmdletBinding ()]
330 [OutputType ([string ])]
431
You can’t perform that action at this time.
0 commit comments