Git Product home page Git Product logo

Comments (5)

tburry avatar tburry commented on September 24, 2024

You can turn formatting off with the following code:

$cli = new Cli();
$cli->format = false;

I look into a way of turning formatting off by default on Windows.

from garden-cli.

tburry avatar tburry commented on September 24, 2024

Can you tell me what the output of the following command is on your Windows terminal?

echo shell_exec('tput colors 2> output');

from garden-cli.

mastacheata avatar mastacheata commented on September 24, 2024

On my computer it prints 8 and puts nothing in the file.
BUT: I have the Git / MingW64 tools (a bundle of common cli tools from *nix systems as windows exe files)
Even though it prints out the number and is available it can't overcome the limitation of Windows CMD no longer supporting ANSI escape sequences (no longer here means since the release of Windows 95, more than 20 years ago)

You're probably more interested in what SHOULD happen, and that is something along the lines of this command doesn't exist being printed to the output file.
My Widnows is set to German language, though, so this is what the output file contains:

Der Befehl "tput" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.

I can very well live with turning it off by hand, though...

from garden-cli.

tburry avatar tburry commented on September 24, 2024

Okay thanks for the info. I'm going to think about whether or not to add the default based solely on the OS being Windows. It sounds sensible, but then someone will come along with Cygwin.

from garden-cli.

yakatz avatar yakatz commented on September 24, 2024

Windows 10 now supports colors in conhost, so it would be nice to revisit this.

from garden-cli.

Related Issues (15)

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.