Permalink
Please
sign in to comment.
Browse files
console: don't use ANSI escape codes when TERM=dumb
PR-URL: #26261 Fixes: #26187 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
- Loading branch information...
Showing
with
14 additions
and 1 deletion.
| @@ -0,0 +1,9 @@ | |||
| 'use strict'; | |||
| require('../common'); | |||
|
|
|||
| process.env.TERM = 'dumb'; | |||
|
|
|||
| console.log({ foo: 'bar' }); | |||
| console.dir({ foo: 'bar' }); | |||
| console.log('%s q', 'string'); | |||
| console.log('%o with object format param', { foo: 'bar' }); | |||
| @@ -0,0 +1,4 @@ | |||
| { foo: 'bar' } | |||
| { foo: 'bar' } | |||
| string q | |||
| { foo: 'bar' } with object format param | |||
0 comments on commit
9952375