LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-09-2008, 01:50 PM   #1
dansku
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
Daniel

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

Rep: Reputation: 60
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, 03:27 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

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

Original Poster
Rep: Reputation: 0
Works!

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

Thanks a lot!
 
Old 01-22-2010, 09:16 AM   #5
Unregistered
Member
 
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?
 
  


Reply


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 04:57 PM
Bash Loop Dialog xlordt Programming 5 09-26-2006 10:40 AM
bash scripting: dialog --inputbox chibiace Linux - Newbie 1 11-08-2004 11:22 PM
Dynamic dialog in bash scripts AndiOliver Programming 3 04-22-2004 03:46 AM
Dialog box scripting.... r_jensen11 Programming 2 01-25-2004 07:40 PM


All times are GMT -5. The time now is 04:44 PM.

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