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.

Give TERM=dumb Higher Priority

See original GitHub issue

Emacs M-x shell runs the shell in an environment where the TERM variable is set to dumb, which informs the shell and applications that the terminal does not support any terminal control escape sequences.

While you have code to handle the dumb setting, both the Windows platform processing and the TERM_PROGRAM are processed first.

For instance on macOS,

$ cd /path/to/mocha/node_modules
$ TERM=dumb node -e "var tty = require('./supports-color'); console.log(tty.stdout);"
{ level: 2, hasBasic: true, has256: true, has16m: false }
$ TERM_PROGRAM= TERM=dumb node -e "var tty = require('./supports-color'); console.log(tty.stdout);"
false

Mocha is getting publicly blamed for this. Suggestions?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
plroebuckcommented, Dec 2, 2018

I concur with PR change from @Alhadis. Mocha will be doing a major release RSN; it’d be nice to get this in (via package dependency update).

0reactions
Alhadiscommented, Dec 2, 2018

Have a look for yourself: https://github.com/Alhadis/AdobeFontMetrics.js/blob/master/test/1.1-global-spec.js

I actually edited the the it handler to literally include “It” before the test title in the output,because I was getting sick of my beautifully-writen tests not sounding as eloquent as I am.

I’m tired as shit right now, just letting everybbody be aware of that. 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

When you set a 100% CPU program to real-time priority, you ...
Real-time priority is really dangerous. It's higher priority than nearly everything else. It's higher priority than mouse input, keyboard input ...
Read more >
Lil Baby – Top Priority Lyrics - Genius
Top Priority Lyrics: Top priority, they runnin' to me / Bitches flyin' all the way from Europe to me (Yeah) / Anybody came...
Read more >
Can one CSS file take priority over another CSS file?
It depends on how you set them in your header. So something like this will work: <link rel="old stylesheet" href="path/to/style.css" /> <link rel="newer ......
Read more >
top(1) - Linux manual page - man7.org
Thus, an autogroup with many CPU intensive processes (e.g make -j) will not ... A negative nice value means higher priority, whereas a...
Read more >
Priority system completely broken? - Dawn of Man
It's not broken at all, though it can sometimes take time for a new high priority to take effect. Your people's ability to...
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