Code Monkey home page Code Monkey logo

Comments (8)

shinnn avatar shinnn commented on May 18, 2024

@weikinhuang Why current version doesn't meet your requirements? Current / expected screenshot is very welcome.

from chalk.

weikinhuang avatar weikinhuang commented on May 18, 2024

Sure thing, here's the screenshot (using SecureCRT, with xterm-256 emulator mode):

image

"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.

shinnn avatar shinnn commented on May 18, 2024

I say again:

Why current version doesn't meet your requirements?

The screenshot looks good to me.

from chalk.

weikinhuang avatar weikinhuang commented on May 18, 2024

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:
image

I'm specifically referring to the blue foreground text color.

from chalk.

shinnn avatar shinnn commented on May 18, 2024

Ah, OK. You meant that chalk should disable these lines on the terminals with solarized color theme?

from chalk.

weikinhuang avatar weikinhuang commented on May 18, 2024

Ya, but not necessarily with a solarized theme, but terminals that supports proper colors.

from chalk.

kevva avatar kevva commented on May 18, 2024

Can you send a PR?

from chalk.

weikinhuang avatar weikinhuang commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.