-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* server: polyfill tty.getWindowSize close #1815 * correctly polyfill getWindowSize for stdout and stderr, dont touch tty - use our terminal-size wrapper * fix not having coffeescript available yet
- Loading branch information
1 parent
a4fa1b3
commit 27ed1dc
Showing
6 changed files
with
81 additions
and
26 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const set = (key, val) => { | ||
return process.env[key] = val | ||
} | ||
|
||
const get = (key) => { | ||
return process.env[key] | ||
} | ||
|
||
module.exports = { | ||
set, | ||
|
||
get, | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const termSize = require('term-size') | ||
const env = require('./env') | ||
|
||
const get = () => { | ||
const obj = termSize() | ||
|
||
if (env.get('CI')) { | ||
// reset to 100 | ||
obj.columns = 100 | ||
} | ||
|
||
return obj | ||
} | ||
|
||
module.exports = { | ||
get, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters