LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   bash scripting: using color in dialog (https://www.linuxquestions.org/questions/programming-9/bash-scripting-using-color-in-dialog-612388/)

dansku 01-09-2008 12:50 PM

bash scripting: using color in dialog [solved]
 
Dear all,

I'm currently working on a bash script using dialog. I would like to include colored text in a msgbox. Does anyone know if this is possible and if so how to do it?

Thanks in advance
Daniel

Uncle_Theodore 01-09-2008 01:34 PM

Do you want it like this?
dialog --colors --infobox "\Zb\Z1Hi \Z5there" 3 12

It's all in the man pages of the dialog command...

gnashley 01-09-2008 02:27 PM

If it's just for use on your machine, you can also set up colors with the /etc/dialogrc file.

dansku 01-09-2008 02:56 PM

Works!

It was probably too obvious so I simply overlooked it...

Thanks a lot!

Unregistered 01-22-2010 08:16 AM

Hey sorry for bumping this but how can I change the background and color of the dialog that appears?


All times are GMT -5. The time now is 02:30 PM.