Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
$global:originalPSConsoleHostReadLine = $function:global:PSConsoleHostReadLine | |
$global:originalPrompt = $function:global:Prompt | |
$function:global:PSConsoleHostReadLine = { | |
$startProgressIndicator = "`e]9;4;3;50`e\" | |
$command = $originalPSConsoleHostReadLine.Invoke() | |
$startProgressIndicator | Write-Host -NoNewLine | |
$command | |
} |