Hey there,

Ray Andrews via Users wrote:

>If I echo some colored text into a file and then look at it in Geany
>I see 'ESC' where the escape code is, but how can I recreate that 
>manually?  I've tried '\e[' and '\x1b[' and a few other things but 
>nothing works.

There's more than one way to do it. Here are a couple of examples:

echo -e "\033[32mThis is in green\033[0m"

echo -e "$(tput setaf 2)This is in green$(tput sgr0)"

You might like this page:

https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux

-- 
Little Girl

There is no spoon.
_______________________________________________
Users mailing list -- users@lists.geany.org
To unsubscribe send an email to users-le...@lists.geany.org

Reply via email to