Changing Text Color Using VT100


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Changing Text Color Using VT100
# 1  
Old 11-25-2006
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  
Old 11-25-2006
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  
Old 11-25-2006
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..
Tornado
# 4  
Old 11-27-2006
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  
Old 11-27-2006
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
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash - changing a color of a substring

Hello! I need to write a bash script for my university classes, and I came up with an idea of a program that would test the speed of typing - there is some random text that you have to rewrite, and the script measures time, number of mistakes etc. The text would be visible on the screen all... (3 Replies)
Discussion started by: xqwzts
3 Replies

2. Programming

changing text color in c

I'm writing my own Unix ls command in c and I was wondering if anyone knows how to or can point me to a tutorial that shows me how to change the text color of the filename depending on if it's a directory, regular file, linked file, etc..., like the real ls command does? Thanks. (4 Replies)
Discussion started by: snag49ers
4 Replies

3. Shell Programming and Scripting

Python- Changing background color on Button click

Hi, I am trying to write a python program which changes background color on click of button. However i am stuck up. Instead of changing the color currently it is creating a new frame every time. please look at the code and let me know how to correct it #!/usr/bin/env python from Tkinter... (0 Replies)
Discussion started by: vickylife
0 Replies

4. Shell Programming and Scripting

text color

Hi all I have a file contains columns showing figures as below : Input file A B C D 50 60 90 E 100 20 53 F 30 40 70 G 25 27 45 I want to color the value above or equal 90 by red and to be shown as below output file... (5 Replies)
Discussion started by: Bluetoot
5 Replies

5. UNIX for Advanced & Expert Users

Changing text color in existing xterm or dtterm

On solaris and irix systems, I'm using csh in an existing xterm or dterm and would like to change the text colors. How do I accomplish this? Thanks (1 Reply)
Discussion started by: fjc
1 Replies

6. Shell Programming and Scripting

How to change prompt color when changing path

Hi all, Can you tell me how to change the prompt color (only the path part) when I chnange directory with "cd"? I use the sequence below in ".bashrc" (Solaris 8) to change my prompt colors and I'd like to modify it to change the path color when I cange directory. PSC() { echo -ne "\"; }... (0 Replies)
Discussion started by: majormark
0 Replies

7. Shell Programming and Scripting

Changing font and color in log file of Script

Hi, We have process log with user defined error messages and information echos. I wanted to highlight error messgaes in that log file while writing in it. Is there any option with either echo or any other command which enables making text bold or we can change the font of body text of echo. ... (4 Replies)
Discussion started by: satgo
4 Replies

8. Shell Programming and Scripting

VT100 terminal and colour

Good day all I am looking for a way to change colours in a text file that get tailed. I have tried using tput, however this does not seem to work. terminal type is using putty and vt100 emulation. Any ideas. :rolleyes: Thanks J (6 Replies)
Discussion started by: jhansrod
6 Replies
Login or Register to Ask a Question