Skip to content

Commit

Permalink
Pass terminal dimensions into container
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Jul 29, 2023
1 parent 1c91e18 commit b79b431
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions legacy/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,14 @@ exports.loadComposeFiles = (files, dir) => _(exports.validateFiles(files, dir))
/*
* Helper to get default cli envvars
*/
exports.getCliEnvironment = (more = {}) => _.merge({}, {
PHP_MEMORY_LIMIT: '-1',
}, more);
exports.getCliEnvironment = (more = {}) => _.merge(
{},
{PHP_MEMORY_LIMIT: '-1'},
// Pass terminal dimensions into the container so that tools that rely on them can render properly
process.stdout.columns && {COLUMNS: process.stdout.columns},
process.stdout.rows && {LINES: process.stdout.rows},
more,
);

/*
* Helper to return a valid id from app data
Expand Down

0 comments on commit b79b431

Please sign in to comment.