tabby/terminus-terminal/src/utils.ts

9 lines
303 B
TypeScript
Raw Normal View History

2019-02-12 10:19:17 +00:00
import * as os from 'os'
export const WIN_BUILD_CONPTY_SUPPORTED = 17692
export const WIN_BUILD_CONPTY_STABLE = 18309
export function isWindowsBuild (build: number): boolean {
return process.platform === 'win32' && parseFloat(os.release()) >= 10 && parseInt(os.release().split('.')[2]) >= build
}