From c152dc48e51630c37825a3488edf1885311483c8 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 20 May 2016 19:19:26 -0700 Subject: [PATCH] Windows: Turn on native console by default Signed-off-by: John Howard --- pkg/term/term_windows.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkg/term/term_windows.go b/pkg/term/term_windows.go index cd21b5fc2b..9bc52a8c65 100644 --- a/pkg/term/term_windows.go +++ b/pkg/term/term_windows.go @@ -83,11 +83,13 @@ func useNativeConsole() bool { return false } - // TODO Windows. The native emulator still has issues which - // mean it shouldn't be enabled for everyone. Change this next line to true - // to change the default to "enable if available". In the meantime, users - // can still try it out by using USE_NATIVE_CONSOLE env variable. - return false + // Must have a post-TP5 RS1 build of Windows Server 2016/Windows 10 for + // the native console to be usable. + if osv.Build < 14350 { + return false + } + + return true } // getNativeConsole returns the console modes ('state') for the native Windows console