Comments (8)
@weikinhuang Why current version doesn't meet your requirements? Current / expected screenshot is very welcome.
from chalk.
Sure thing, here's the screenshot (using SecureCRT, with xterm-256 emulator mode):
"use strict";
const chalk = require("chalk");
[ "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray" ].forEach(function(color) {
process.stdout.write(chalk[color](color) + " ");
});
process.stdout.write("\n");
[ "bgBlack", "bgRed", "bgGreen", "bgYellow", "bgBlue", "bgMagenta", "bgCyan", "bgWhite" ].forEach(function(color) {
process.stdout.write(chalk[color](color) + " ");
});
process.stdout.write("\n");
from chalk.
I say again:
Why current version doesn't meet your requirements?
The screenshot looks good to me.
from chalk.
Ah, sorry.
Since I'm on a xterm console (instead of cmd
or something) I expect that blue would show up as blue and not a grey color even though I'm on windows.
The following would be the expected behavior:
I'm specifically referring to the blue foreground text color.
from chalk.
Ah, OK. You meant that chalk should disable these lines on the terminals with solarized color theme?
from chalk.
Ya, but not necessarily with a solarized theme, but terminals that supports proper colors.
from chalk.
Can you send a PR?
from chalk.
PR sent, I couldn't decide if I should test against xterm
or dumb
terminal (that's what cmd.exe
reports in process.env.TERM
).
from chalk.
Related Issues (20)
- Add more colors HOT 2
- Chalk is not working in Jenkins multibranch pipeline HOT 1
- Does chalk.js support squiggly lines? HOT 1
- Cannot find module 'chalk'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option? HOT 2
- Can't show color in vscode integrated terminal HOT 1
- chalk not suppported?? HOT 1
- Tried to use with TS (NestJS Project) HOT 6
- is there r any way to mix background colors like gradient-string? HOT 1
- Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 6
- chalk 5.x fails with typescript HOT 3
- Is it possible to apply a style conditionally? HOT 5
- ReferenceError: navigator is not defined HOT 1
- Remove README.md from bundle HOT 2
- v4 property override error
- is support require('chalk')? HOT 3
- Chalk italic modifier is not applied in Windows Git Bash terminal. HOT 1
- $FORCE_COLOR works only as either level 0 or 3 HOT 1
- New Windows fluent emoji font - color is wrong HOT 1
- Unable to resolve module #ansi-styles HOT 2
- 【suggestion】support commonjs version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chalk.