Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-09-2008, 12:50 PM   #1
LQ Newbie
Registered: Nov 2005
Location: Hamburg, Germany
Distribution: gentoo
Posts: 4

Rep: Reputation: 0
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

Last edited by dansku; 01-09-2008 at 02:57 PM.
Old 01-09-2008, 01:34 PM   #2
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
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...
Old 01-09-2008, 02:27 PM   #3
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,890

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
If it's just for use on your machine, you can also set up colors with the /etc/dialogrc file.
Old 01-09-2008, 02:56 PM   #4
LQ Newbie
Registered: Nov 2005
Location: Hamburg, Germany
Distribution: gentoo
Posts: 4

Original Poster
Rep: Reputation: 0

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

Thanks a lot!
Old 01-22-2010, 08:16 AM   #5
Registered: Apr 2007
Posts: 63

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dialog bash gauge wget question... DjRakso Linux - Newbie 1 12-19-2007 03:57 PM
Bash Loop Dialog xlordt Programming 5 09-26-2006 09:40 AM
bash scripting: dialog --inputbox chibiace Linux - Newbie 1 11-08-2004 10:22 PM
Dynamic dialog in bash scripts AndiOliver Programming 3 04-22-2004 02:46 AM
Dialog box scripting.... r_jensen11 Programming 2 01-25-2004 06:40 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration