question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

colors/mod.ts: brightBlue looks more like magenta

See original GitHub issue

Describe the bug

Using the color std module. If you want to output brightBlue the output txt looks (almost) like magenta. bgBlue, bgBrightBlue, blue work ok

Steps to Reproduce

console.log("brightBlue", brightBlue("brightBlue"));

Expected behavior

The output should look like (bright) blue

Environment

  • OS: macOS Ventura 13.1
  • deno version: 1.29.1 (release, aarch64-apple-darwin)
  • std version: 0.164.0
image

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilogorekcommented, Dec 28, 2022

This is a valid behavior then. Based on your output, this is exactly how it should look for xterm, see: https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit You can either change your term to screen-256color which will give you a different set of colors, or modify settings of your terminal emulator to update color codes for the one you want. This is a user-specific configuration and escape codes are standardized, so there’s nothing we can change here tbh.

0reactions
lino-levancommented, Dec 29, 2022

I think @kamilogorek has done a pretty good job explaining why this is pretty much unactionable.

Unless @sspilleman has a proposal for what can be done, I think this issue should be closed as an issue with terminal.app and not with the deno std.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Magenta: The Color That Doesn't Exist And Why - Medium
I'm sure you recognize magenta — it's that color that's a mix between purple and red. It's sort of pinkish-purple, and looks something...
Read more >
Pantone's 2023 color of the year is 'Viva Magenta' - NPR
After much research and consideration, the Pantone Color Institute has revealed the color of the year for 2023. It calls Viva Magenta "an ......
Read more >
Magenta Highlights on Midnight Blue Hair - Pinterest
Jun 9, 2020 - Magenta hair colors are hot this year! Click here if you're ready to make an exciting change with one...
Read more >
Viva Magenta is Pantone's color for 2023. It's the powerful red ...
The 2023 Pantone Color of the Year is Viva Magenta, hybrid red that mixes the excitement of crimson and the calmness of blue...
Read more >
2023 Color Of The Year Viva Magenta Meaning Explained
It is not as mauve as a true fuchsia, not as orange as scarlet, and not as primary as Pantone's Period, a shade...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found