You are not logged in.

#1 2015-05-18 17:15:44

killedbymonkeys
Member
Registered: 2013-08-26
Posts: 17

Activate Commandline Colors from php

Hello,

i use a lot of commandline tools based on php. But they dont display any colored output? I cant find anything usefull for that on google.

I use zsh.

Colors are working for other commands (e.g. ls):
http://i.imgur.com/TGqpLCI.png



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

#2 2015-05-18 18:56:21

ayekat
Member
Registered: 2011-01-17
Posts: 1,634

Re: Activate Commandline Colors from php

It's the program that outputs text in colour. `ls` prints escape sequences along with the visible output to make it appear in colour. zsh does the same thing (e.g. for the prompt).
You can

printf "\033[31mHello!\033[0m\n"

and it will be in colour, too.

You could directly address the author of said software, so that they add coloured output.

Otherwise, could you also be a little more precise about which tools you are using? Your post does not contain lots of information (it's always a good habit to be as precise as possible when asking questions), so I doubt anyone on this forum will be able to help you.

Last edited by ayekat (2015-06-02 16:08:42)


pkgs │ hacks │ cfg │ blag

Offline

Board footer

Powered by FluxBB