Types/Escape.Sequence/cursorDown.ps1
|
<# .SYNOPSIS Cursor Down Escape Sequence .DESCRIPTION Escape Sequence to move the cursor down .LINK https://en.wikipedia.org/wiki/ANSI_escape_code #> param( # The number of cells to move. [int]$CellCount = $( if ("$($this.input)" -as [int]) { "$($this.input)" } else { 1 } ) ) $e = [char]27 if ($CellCount -lt 0) { "$e[${CellCount}A" } else { "$e[${CellCount}B" } |