I found a bug of `getColorDepth` at [this line](https://github.com/nodejs/node/blob/master/lib/internal/tty.js#L40). Elements of `TERM_ENVS` should be lower case because they are compared with [lower case of env.TERM](https://github.com/nodejs/node/blob/master/lib/internal/tty.js#L131).
Activity
ofrobots commentedon Feb 13, 2019
@sttk do you want to try opening a pull-request for this? You can find a contribution guide here.
Dlewis89 commentedon Feb 14, 2019
I would like to take a shot at this if sttk doesnt want too.
sttk commentedon Feb 14, 2019
@Dlewis89 OK. I ask you this pr.
lib: converted element to lowercase in tty.js
lib: converted element to lowercase in tty.js
lib: converted element to lowercase in tty.js
lib: converted element to lowercase in tty.js