Advertisement
guyrleech

Output scrolling indented text to help see when it hangs

Dec 4th, 2019
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [string[]]$colours = @( 'Cyan' , 'Yellow' , 'Green' , 'Red' , 'White' )
  2. [int]$i=0;while(1){ $i++ ; Write-Host -ForegroundColor $colours[$i % 5] -Object "$(1..$i|%{ ' ' })$(Get-date -format "HH:mm:ss")`n"  ; sleep 1; if( $i -gt 20 ) { $i = 0 } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement