File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ $global:GitPromptSettings = [pscustomobject]@{
9797
9898 EnableWindowTitle = ' posh~git ~ '
9999
100+ AnsiConsole = $Host.UI.SupportsVirtualTerminal -or ($Env: ConEmuANSI -eq " ON" )
101+
100102 DefaultPromptPrefix = ' '
101103 DefaultPromptSuffix = ' $('' >'' * ($nestedPromptLevel + 1)) '
102104 DefaultPromptDebugSuffix = ' [DBG]$('' >'' * ($nestedPromptLevel + 1)) '
@@ -128,7 +130,7 @@ if (Get-Module NuGet) {
128130}
129131
130132function Write-Prompt ($Object , $ForegroundColor , $BackgroundColor = -1 ) {
131- if ($Host .UI.SupportsVirtualTerminal ) {
133+ if ($GitPromptSettings .AnsiConsole ) {
132134 $e = [char ]27 + " ["
133135 $f = Get-ForegroundVirtualTerminalSequence $ForegroundColor
134136 $b = Get-BackgroundVirtualTerminalSequence $BackgroundColor
You can’t perform that action at this time.
0 commit comments