Support force tty of nodeConsole
See original GitHub issueFeature request
What is the expected behavior?
Provide some environment variable or someway to support force set tty
of nodeConsole
.
What is motivation or use case for adding/changing the behavior?
To use with Jenkins.
I make builds using Jenkins, and it supports colors by AnsiColor plugin.
Since Jenkins shows ‘Console Output’ as non-TTY environment, I need to set force color options many place.
So I want something like https://github.com/webpack/webpack-cli supporting force color via .npmrc color=always
.
How should this be implemented in your opinion?
Change above to below:
const tty = (process.stderr.isTTY && process.env.TERM !== "dumb") || process.env.TERM === "tty";
Are you willing to work on this yourself? Yes
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (17 by maintainers)
Top Results From Across the Web
Manual for nodeconsole - Lenovo HPC
nodeconsole opens an interactive console session to a given node. This is the text or serial console of a system. Exiting is done...
Read more >Why is __dirname not defined in node REPL? - Stack Overflow
__dirname is only defined in scripts. It's not available in REPL. try make a script a.js console.log(__dirname);. and run it: node a.js.
Read more >tip · cisco-nexus-snmpit-support · Chad Dougherty / emulab-devel ...
Support for talking to a socket instead of a tty device. We use this for connecting to our "capture" console serial line proxy....
Read more >Urika-GX System Administration Guide 2.0UP00 S ... - HPE Support
tty, Display status of all established remote console sessions or kill specified connection ... [r0s0i0 /]# history tty help history ver ok [r0s0i0...
Read more >screen.info-2 - Apple Open Source
For tty windows, the `info' command shows some of the modem control lines in the ... `Screen' must be compiled with multiuser support...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, let’s send a PR
We can provide option to disable/enable colors for
infrastructureLogging
and you can implement any logic on own side