LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 12: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 02:57 PM.
 
Old 01-09-2008, 01:34 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
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
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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
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, 08: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration