Welcome Guest, Not a member yet? Register   Sign In
what is ?[0;32m and ?[0m in php spark

In Dev, what is the `?[0;32m` and `?[0m`
when run `php spark`?

See screenshot:

I suppose those would be color-codes (probably malformed) that your terminal fails to recognize and shows them literally.

An example from the standard Ubuntu Linux .bashrc:

if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

where 01;32m sets the text color to green. If and when the terminal understands it. Smile

how can I resolve it?
re install?

I believe they our ascii color code that were used in dos.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

If you are using Windows 10, then you should have color support native to your terminal. For Windows 7 and 8, then you need to install ANSICON.

However, it is strange that your spark header is green while the rest are malformed. This should be a problem with your terminal.

(This post was last modified: 05-16-2021, 11:13 PM by mylastof.)

I have try with another terminal, just "error" in Git Bash ..
with CMD / PowerShell working as expected.

Thanks for  the response, I now just switch to other terminal.

Theme © iAndrew 2016 - Forum software by © MyBB