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.

Chalk [ 3.0.0 ] not working with xterm [ 4.2.0 ]

See original GitHub issue

I have made the following React[16.11.0] + XTerm[4.2.0] demo trying to use Chalk[ 3.0.0 ] but it doesn’t work for some reason … is this a bug or am i doing something wrongly?

I carefully read https://github.com/xtermjs/xterm.js/issues/895 and found out i have to use :

let options = {enabled: true, level: 2};
const forcedChalk = new chalk.constructor(options);

But still i am getting errors => you can see the very simple demo on SandBox , by the way i am making a full demo oF new xterm.js [ 4.0.0 ] so react developers can benefit from it .

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
goxr3pluscommented, Nov 19, 2019

For future users i finally used another library called ansi-colors

image

1reaction
jerchcommented, Nov 14, 2019

@goxr3plus Nope sorry, maybe ask chalk devs how to escape the nodejs deps correctly?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Xterm NPM
Xterm.js is a front-end component written in TypeScript that lets applications bring fully-featured terminals to their users in the browser.
Read more >
chalk - npm
chalk ; Highly performant; Doesn't extend String.prototype; Expressive API; Ability to nest styles; Clean and focused; Auto-detects color support ...
Read more >
NO_COLOR: disabling ANSI color output in various Unix ...
Software Description Date/Version Supported alogview Android logcat Filter 2018‑10‑31 Ammonite Scala Scripting 2017‑07‑03 / 1.0.0 Ansible IT automation system 2021‑04‑26 / 2.11.0
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Source Packages in "buster-backports", Subsection misc
... golang-github-go-sql-driver-mysql (1.5.0-1~bpo10+1); golang-github-golang-mock ... golang-gopkg-yaml.v3 (3.0.0~git20200121.a6ecf24-2~bpo10+1) ...
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