aboutsummaryrefslogtreecommitdiff
path: root/node_modules/term-size/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/term-size/index.js')
-rw-r--r--node_modules/term-size/index.js8
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]);