Compare commits
6 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa06bb5ac3 | ||
|
|
51557784b8 | ||
|
|
5c91505e18 | ||
|
|
a8f5bf7a67 | ||
|
|
67db246ae0 | ||
|
|
79ee2d386c |
3 changed files with 11 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "chalk",
|
"name": "chalk",
|
||||||
"version": "5.4.1",
|
"version": "5.6.2",
|
||||||
"description": "Terminal string styling done right",
|
"description": "Terminal string styling done right",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "chalk/chalk",
|
"repository": "chalk/chalk",
|
||||||
|
|
|
||||||
|
|
@ -178,10 +178,10 @@ console.log(foregroundColorNames.includes('pink'));
|
||||||
- `italic` - Make the text italic. *(Not widely supported)*
|
- `italic` - Make the text italic. *(Not widely supported)*
|
||||||
- `underline` - Put a horizontal line below the text. *(Not widely supported)*
|
- `underline` - Put a horizontal line below the text. *(Not widely supported)*
|
||||||
- `overline` - Put a horizontal line above the text. *(Not widely supported)*
|
- `overline` - Put a horizontal line above the text. *(Not widely supported)*
|
||||||
- `inverse`- Invert background and foreground colors.
|
- `inverse` - Invert background and foreground colors.
|
||||||
- `hidden` - Print the text but make it invisible.
|
- `hidden` - Print the text but make it invisible.
|
||||||
- `strikethrough` - Puts a horizontal line through the center of the text. *(Not widely supported)*
|
- `strikethrough` - Puts a horizontal line through the center of the text. *(Not widely supported)*
|
||||||
- `visible`- Print the text only when Chalk has a color level above zero. Can be useful for things that are purely cosmetic.
|
- `visible` - Print the text only when Chalk has a color level above zero. Can be useful for things that are purely cosmetic.
|
||||||
|
|
||||||
### Colors
|
### Colors
|
||||||
|
|
||||||
|
|
|
||||||
8
source/vendor/supports-color/index.js
vendored
8
source/vendor/supports-color/index.js
vendored
|
|
@ -135,6 +135,14 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (env.TERM === 'xterm-ghostty') {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (env.TERM === 'wezterm') {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
|
||||||
if ('TERM_PROGRAM' in env) {
|
if ('TERM_PROGRAM' in env) {
|
||||||
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue