diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:01:11 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-08-14 05:02:09 +0200 |
commit | 363723fc84f7b8477592e0105aeb331ec9a017af (patch) | |
tree | 29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/term-size/index.js | |
parent | 5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff) |
node_modules
Diffstat (limited to 'node_modules/term-size/index.js')
-rw-r--r-- | node_modules/term-size/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
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]); |