GithubHelp home page GithubHelp logo

Comments (8)

keithamus avatar keithamus commented on July 17, 2024

Thanks @danawoodman for the issue. Parallelshell should just pipe the output down without issue - so should support colour fine. What are you seeing, no colours or loads of gibberish? If no colours it could be some kind of colour detection from the program you're using - which we should be able to trick into showing colours. What program are you using that is not showing colours?

from parallelshell.

danawoodman avatar danawoodman commented on July 17, 2024

Thanks for the quick reply!

I'm seeing the following when running parrallelshell 'mocha':

with parrallelshell

...where as if I run Mocha directly I get:

without parrallelshell

I'm using iTerm2 to display the output.

from parallelshell.

keithamus avatar keithamus commented on July 17, 2024

Seems like mocha is checking tty.isatty(1) && tty.isatty(2) in the base reporter. I believe we'd just need to trick it into believing that parallelshell's stdin and out are ttys.

from parallelshell.

danawoodman avatar danawoodman commented on July 17, 2024

@keithamus would using spawn work instead of exec?

from parallelshell.

keithamus avatar keithamus commented on July 17, 2024

Deployed as v1.1.0

from parallelshell.

danawoodman avatar danawoodman commented on July 17, 2024

Yay! πŸ‘

from parallelshell.

danawoodman avatar danawoodman commented on July 17, 2024

I'm now getting the following exception locally:

$ ./node_modules/parallelshell/index.js
./node_modules/parallelshell/index.js: line 1: use strict: command not found
./node_modules/parallelshell/index.js: line 2: syntax error near unexpected token `('
./node_modules/parallelshell/index.js: line 2: `var spawn = require('child_process').spawn;'

Any thoughts?

from parallelshell.

danawoodman avatar danawoodman commented on July 17, 2024

Nevermind, I was running it directly on the command line rather than running through Node

from parallelshell.

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.