aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/term-size/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/term-size/index.js')
-rw-r--r--deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/term-size/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/term-size/index.js b/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/term-size/index.js
index c6974e2e34..95e410df26 100644
--- a/deps/npm/node_modules/update-notifier/node_modules/boxen/node_modules/term-size/index.js
+++ b/deps/npm/node_modules/update-notifier/node_modules/boxen/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]);