Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tty: truecolor check moved before 256 check #30474

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tty: move COLORTERM check outside TERM closure
  • Loading branch information
duncanhealy committed Nov 13, 2019
commit 7dde89e78f6e30748faa31a0882a44d26cf5f778
9 changes: 4 additions & 5 deletions lib/internal/tty.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,11 @@ function getColorDepth(env = process.env) {
return COLORS_16;
}
}
// Move 16 color COLORTERM below 16m and 256
if (env.COLORTERM) {
return COLORS_16;
}
}

// Move 16 color COLORTERM below 16m and 256
if (env.COLORTERM) {
return COLORS_16;
}
return COLORS_2;
}

Expand Down