Review your favorite Linux distribution.
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 09-22-2009, 08:11 AM   #1
LQ Newbie
Registered: Aug 2007
Location: Evans, GA
Distribution: Slackware 12
Posts: 5

Rep: Reputation: 0
color in dialog --textbox

I am trying to display a formatted list like this:
dialog --msgbox <file> 20 80
I want to display the date fields in bold RED if they match the current date, but the \Zb\Z1 22-SEP-09 \Zn in my file all just gets printed out literally.

The color displays fine if i use a msgbox widget:
dialog --msgbox "$(cat <file> | column -t -c 3)"
but the formatting gets messed up and all my columns are unevenly spaced.

Any ideas? I have to use crappy dialog because the front end i'm designing needs to be accessed via ssh.
Old 09-22-2009, 10:31 AM   #2
LQ Newbie
Registered: Aug 2007
Location: Evans, GA
Distribution: Slackware 12
Posts: 5

Original Poster
Rep: Reputation: 0
Figured it out.. I can use --colors --no-collapse --msgbox and get my colors and formatting...

guess i should have exhausted the man page..



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
bash scripting: using color in dialog dansku Programming 4 01-22-2010 09:16 AM
tab button in textbox Four LQ Suggestions & Feedback 0 02-15-2008 12:07 AM
Change TextBox Color rn5a Linux - Newbie 3 09-23-2007 07:14 PM
insert textbox in openoffice Four Linux - Newbie 4 03-23-2006 11:07 PM
Reading integers in a GTK textbox... Claus Programming 2 11-04-2003 09:44 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:48 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