Comments (5)
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.
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.
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.
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.
Windows 10 now supports colors in conhost, so it would be nice to revisit this.
from garden-cli.
Related Issues (15)
- Calling "cli.php --string-option" sets string-option to "1" instead of ""
- Error "parseRaw expects an array" HOT 4
- Write out documentation on the js/ts coding standard HOT 1
- LogFormatter improvements HOT 1
- Print usage on demand HOT 1
- How to implement new levels, or just change messages color formats HOT 1
- Allow one to programatically trigger the help screen HOT 2
- Logger has no fluid interface HOT 1
- is it possible that argument are not checked against required flag?
- Setting an option value via array syntax is not permitted HOT 1
- multiple arguments
- PHP 8.1 Compatibility HOT 2
- Shortform of help doesn't work (on macos with zsh)
- Allow Format -o=value or --option=value HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garden-cli.