Skip to content

Commit 29b8130

Browse files
Leverage internal HostUI for VT check (#1264)
1 parent 3c3b768 commit 29b8130

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/PowerShellEditorServices/Services/PowerShellContext/Session/Host/EditorServicesPSHostUserInterface.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ internal abstract class EditorServicesPSHostUserInterface :
6767

6868
#region Properties
6969

70-
#if !PowerShellv3 && !PowerShellv4 && !PowerShellv5r1 // Only available in Windows 10 Update 1 or higher
7170
/// <summary>
7271
/// Returns true if the host supports VT100 output codes.
7372
/// </summary>
74-
public override bool SupportsVirtualTerminal => true;
75-
#endif
73+
public override bool SupportsVirtualTerminal => false;
7674

7775
/// <summary>
7876
/// Returns true if a native application is currently running.

src/PowerShellEditorServices/Services/PowerShellContext/Session/Host/TerminalPSHostUserInterface.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public TerminalPSHostUserInterface(
6565

6666
#endregion
6767

68+
/// <summary>
69+
/// Returns true if the host supports VT100 output codes.
70+
/// </summary>
71+
public override bool SupportsVirtualTerminal => internalHostUI.SupportsVirtualTerminal;
72+
6873
/// <summary>
6974
/// Gets a value indicating whether writing progress is supported.
7075
/// </summary>

0 commit comments

Comments
 (0)