The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
changing text outthere_3 Shell Programming and Scripting 2 02-13-2008 12:46 AM
How to change the font or color of text pssandeep UNIX for Dummies Questions & Answers 4 12-18-2007 06:15 PM
Changing font and color in log file of Script satgo Shell Programming and Scripting 4 09-21-2006 10:12 AM
how to disable color text in xterm window modemer UNIX for Dummies Questions & Answers 1 06-06-2005 09:20 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-25-2006
Abed Alnaif Abed Alnaif is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 1
Changing Text Color Using VT100

Hi,

I want to change the color of the text. Currently, I am using the following VT100 command, which changes the color of the foreground:

<ESC>[{attr1};...;{attrn}m

The problem is, when I change the color of the foreground, it changes the color of the text as expected, but it also highlights the text gray. Is it possible to change the color of the text wthout the gray highlighting?
  #2 (permalink)  
Old 11-25-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
VT100 is not a command.
I'm not sure what you are doing exactly, but you can change both the forefround and background color within xterm or dtterm. If, say, you want yellow letters on a blue background in a dtterm, you'd do

Code:
dtterm -bg navy -fg yellow
  #3 (permalink)  
Old 11-25-2006
Tornado's Avatar
Tornado Tornado is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2006
Location: Melbourne
Posts: 249
Have you tried 1 to 8 ?
It might be one of them
Code:
The following lists standard attributes:

0	Reset all attributes
1	Bright
2	Dim
4	Underscore	
5	Blink
7	Reverse
8	Hidden

	Foreground Colours
30	Black
31	Red
32	Green
33	Yellow
34	Blue
35	Magenta
36	Cyan
37	White

	Background Colours
40	Black
41	Red
42	Green
43	Yellow
44	Blue
45	Magenta
46	Cyan
47	White

Last edited by Tornado; 11-25-2006 at 05:42 PM..
  #4 (permalink)  
Old 11-27-2006
bishweshwar bishweshwar is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 56
Quote:
Originally Posted by System Shock
VT100 is not a command.
I'm not sure what you are doing exactly, but you can change both the forefround and background color within xterm or dtterm. If, say, you want yellow letters on a blue background in a dtterm, you'd do

Code:
dtterm -bg navy -fg yellow
I'm using Solaris 8.0.. Here I'm not able to locate this command. How to conduct this same operation in this Solaris box
  #5 (permalink)  
Old 11-27-2006
System Shock's Avatar
System Shock System Shock is offline Forum Advisor  
Registered User
  
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 521
Quote:
Originally Posted by bishweshwar
I'm using Solaris 8.0.. Here I'm not able to locate this command. How to conduct this same operation in this Solaris box
Should be in /usr/dt/bin/dtterm
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0