User tests: Successful: Unsuccessful:
Recently a new feature has been added to the framework that allows CLI applications to display colorful output on ANSI enabled terminals. So I thought we might see how it looks and feels ;)
ANSI color codes are supported in most (if not all) *nix style terminals.
To test this feature I grabbed a VM with Windows XP, installed git for Windows and GitHub (both include terminals) but neither them nor the standard Windows thingy supported ANSI colors.
Then I installed Cygwin (which is a good choice anyway), and got the following output:
Since we have some long runng operations (currently ~10 min pulling the CMS issues on my slow i-net), I thought we might use some "high class" progress bar.
The progress bar is not part of the repo and has to be installed using composer from elkuku/console-progressbar (which is a fork of PEAR/Console_ProgressBar with a facelifting ;)
I haven't tried that on windows, but it might work on cygwin...
If your terminal does not support ANSI control codes you may see something like this:
To suppress color ouput for a single command use the --nocolors
switch.
Example:
tracker.php retrieve issues --nocolors
To turn the features off permanently edit etc/config.json
and set the values for the undesired features from 1
to 0
.
Since most of the code in this PR has been used to actually test this feature before submitting it to the framework, I thought I could give this here back too.
If you have any strong feelings against this, please raise your voice here and now or I am going to merge it ;)
This is a "must have" for every modern CLI application :P
I was wondering how long it would be before that stuff got used here ;-)
On Saturday, May 11, 2013, Nikolai Plath wrote: