Projects
openEuler:24.03:SP1:Everything
nodejs-chalk
_service:tar_scm:chalk-fix-lack-of-dim.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:chalk-fix-lack-of-dim.patch of Package nodejs-chalk
diff --git a/index.js b/index.js index 2d85a91..19b4b22 100644 --- a/index.js +++ b/index.js @@ -73,9 +73,9 @@ function applyStyle() { // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, // see https://github.com/chalk/chalk/issues/58 // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - var originalDim = ansiStyles.dim.open; + var originalDim = ansiStyles.gray.open; if (isSimpleWindowsTerm && (nestedStyles.indexOf('gray') !== -1 || nestedStyles.indexOf('grey') !== -1)) { - ansiStyles.dim.open = ''; + ansiStyles.gray.open = ''; } while (i--) { @@ -88,7 +88,7 @@ function applyStyle() { } // Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. - ansiStyles.dim.open = originalDim; + ansiStyles.gray.open = originalDim; return str; }
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2