From 363723fc84f7b8477592e0105aeb331ec9a017af Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Aug 2017 05:01:11 +0200 Subject: node_modules --- node_modules/term-size/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'node_modules/term-size/index.js') diff --git a/node_modules/term-size/index.js b/node_modules/term-size/index.js index c6974e2e3..95e410df2 100644 --- a/node_modules/term-size/index.js +++ b/node_modules/term-size/index.js @@ -20,7 +20,7 @@ module.exports = () => { return create(stderr.columns, stderr.rows); } - // these values are static, so not the first choice + // These values are static, so not the first choice if (env.COLUMNS && env.LINES) { return create(env.COLUMNS, env.LINES); } @@ -28,7 +28,7 @@ module.exports = () => { if (process.platform === 'win32') { try { // Binary: https://github.com/sindresorhus/win-term-size - const size = execa.sync(path.join(__dirname, 'vendor/win-term-size.exe')).stdout.split(/\r?\n/); + const size = execa.sync(path.join(__dirname, 'vendor/windows/term-size.exe')).stdout.split(/\r?\n/); if (size.length === 2) { return create(size[0], size[1]); @@ -37,8 +37,8 @@ module.exports = () => { } else { if (process.platform === 'darwin') { try { - // Binary is from https://www.xquartz.org - const size = execa.shellSync(path.join(__dirname, 'vendor/resize'), ['-u']).stdout.match(/\d+/g); + // Binary: https://github.com/sindresorhus/macos-term-size + const size = execa.shellSync(path.join(__dirname, 'vendor/macos/term-size')).stdout.split(/\r?\n/); if (size.length === 2) { return create(size[0], size[1]); -- cgit v1.2.3