LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-22-2009, 07:11 AM   #1
insamniac
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:
Code:
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:
Code:
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, 09:31 AM   #2
insamniac
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..
 
  


Reply

Tags
dialog



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 08:16 AM
tab button in textbox Four LQ Suggestions & Feedback 0 02-14-2008 11:07 PM
Change TextBox Color rn5a Linux - Newbie 3 09-23-2007 06:14 PM
insert textbox in openoffice Four Linux - Newbie 4 03-23-2006 10:07 PM
Reading integers in a GTK textbox... Claus Programming 2 11-04-2003 08:44 PM

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

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

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