@@ -122,7 +122,7 @@ private void Render()
122122
123123 private void ForceRender ( )
124124 {
125- var defaultColor = " \x1b [39;49m" ;
125+ var defaultColor = VTColorUtils . DefaultColor ;
126126
127127 // Geneate a sequence of logical lines with escape sequences for coloring.
128128 int logicalLineCount = GenerateRender ( defaultColor ) ;
@@ -179,7 +179,7 @@ void RenderOneChar(char charToRender, bool toEmphasize)
179179 if ( inSelectedRegion )
180180 {
181181 // Turn off inverse before end of line, turn on after continuation prompt
182- _consoleBufferLines [ currentLogicalLine ] . Append ( " \x1b [0m" ) ;
182+ _consoleBufferLines [ currentLogicalLine ] . Append ( VTColorUtils . AnsiReset ) ;
183183 }
184184
185185 currentLogicalLine += 1 ;
@@ -254,7 +254,7 @@ void RenderOneChar(char charToRender, bool toEmphasize)
254254 }
255255 else if ( i == selectionEnd )
256256 {
257- _consoleBufferLines [ currentLogicalLine ] . Append ( " \x1b [0m" ) ;
257+ _consoleBufferLines [ currentLogicalLine ] . Append ( VTColorUtils . AnsiReset ) ;
258258 _consoleBufferLines [ currentLogicalLine ] . Append ( activeColor ) ;
259259 inSelectedRegion = false ;
260260 }
@@ -334,7 +334,7 @@ void RenderOneChar(char charToRender, bool toEmphasize)
334334
335335 if ( inSelectedRegion )
336336 {
337- _consoleBufferLines [ currentLogicalLine ] . Append ( " \x1b [0m" ) ;
337+ _consoleBufferLines [ currentLogicalLine ] . Append ( VTColorUtils . AnsiReset ) ;
338338 inSelectedRegion = false ;
339339 }
340340
@@ -444,7 +444,7 @@ private bool RenderErrorPrompt(RenderData renderData, string defaultColor)
444444 string color = renderData . errorPrompt ? _options . _errorColor : defaultColor ;
445445 _console . Write ( color ) ;
446446 _console . Write ( promptText ) ;
447- _console . Write ( " \x1b [0m" ) ;
447+ _console . Write ( VTColorUtils . AnsiReset ) ;
448448 }
449449 else
450450 {
@@ -772,7 +772,7 @@ void UpdateColorsIfNecessary(string newColor)
772772 physicalLine -= pseudoPhysicalLineOffset ;
773773
774774 // Reset the colors after we've finished all our rendering.
775- _console . Write ( " \x1b [0m" ) ;
775+ _console . Write ( VTColorUtils . AnsiReset ) ;
776776
777777 if ( _initialY + physicalLine > bufferHeight )
778778 {
0 commit comments