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

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\]\u@\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
Reply


Messages In This Thread
RE: what is ?[0;32m and ?[0m in php spark - by bivanbi - 05-10-2021, 10:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB