How to set color in the xterm


 
Thread Tools Search this Thread
Operating Systems Solaris How to set color in the xterm
# 1  
Old 09-02-2008
How to set color in the xterm

Hello Friends,

I am using solaris 10 operating system. I would like to know how to use the xterm color in it. I am trying this command:- xterm -bg color, but it is giving this
talc:/home/ania {ania} xterm -bg color
[1] 21469
-bg: Command not found.


What should i do? Can u help me guys??

Thanks
Adi
# 2  
Old 09-02-2008
That looks like you are trying to background it, but the commandline doesn't include an &. Please post the actual command you are running within CODE tags
# 3  
Old 09-02-2008
Actually "color" is no legal color value: try (for instance)

xterm -bg steelblue

and it will work. Instead of "steelblue" you could also use "wheat", "black", "grey50" or several dozens of other colours, but not "color", since that is no defined colour at all.

You can alternatively specify the RGB-value of the colour you want to achieve for background (-bg), foreground (-fg) and cursor (-cr). For example this is my favourite text-editing window with a very dark blue-green background, blue-green text and a light cursor:

Code:
xterm -fg rgb:20/D0/C0 -bg rgb:30/30/50 -cr wheat -fn rom14 -geometry 80x40 -ls

I hope this helps.

bakunin
# 4  
Old 09-03-2008
MySQL

Quote:
Originally Posted by bakunin
Code:
xterm -fg rgb:20/D0/C0 -bg rgb:30/30/50 -cr wheat -fn rom14 -geometry 80x40 -ls

That's a rather nice scheme indeed... *steals* Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

How to set xterm for Window Titls for PuTTy

Hi, I still cant find step by step manual how to make my putty display let say PWD in its title, read about some xterm, but where it is? Can anybody help me with this. Thx M (4 Replies)
Discussion started by: trento17
4 Replies

2. Shell Programming and Scripting

how to set background color in Unix terminal

Hi All, how do I set in .profile file Unix terminal background color = BLUE ? Please advice me. :confused: (2 Replies)
Discussion started by: raghur77
2 Replies

3. UNIX for Dummies Questions & Answers

'export TERM=xterm-color' pretty much screws up clear command

I like using VIM with color tagging (using putty to SunOS). However, when I do an "export TERM=xterm-color", I can't make use of the clear command. Clear just has the same effect as pressing enter now. How can I fix this? Also, does anyone know how to get the directories and file colors... (6 Replies)
Discussion started by: mrwatkin
6 Replies

4. UNIX for Dummies Questions & Answers

set env variables in a new xterm

Hi, I have a script that sets some env variables. I want to source the script in a new xterm and after the script execution is over, the xterm has to be alive with the env variables set according to the script. I tried xterm -e "source ./myscript;tcsh" & The variables are getting set... (3 Replies)
Discussion started by: chaitubek
3 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. UNIX for Dummies Questions & Answers

set background/foreground color in .profile

I am using a telnet session (VT100) and need to modify my .profile so that it will set the color of the telnet session. I am not using Xterm (ie: can't use .Xdefaults). I am able to change the colors via menu's but need to preset in .profile. Is this possible??? Can't find anything at all on how... (3 Replies)
Discussion started by: dvella
3 Replies

7. UNIX for Dummies Questions & Answers

how to disable color text in xterm window

Hello, Anyone knows how to disable color text displayed on xterm window screen? I hate that color making me hard to read when front and background color are similar. Thanks, M. (1 Reply)
Discussion started by: modemer
1 Replies

8. Solaris

latin 2 character-set with xterm

Hi, We have problems with the latin 2 Character-set with xterm. We have installed SunRay-Server with Solaris 8. Our Thinclients use hu- and cz-keyboards. I have set the right local-settings and xmodemaps. If I use the dtterm all is running fine. As soon as I use the xterm, it cannot display... (0 Replies)
Discussion started by: paho
0 Replies

9. UNIX for Advanced & Expert Users

xterm-color

Hi all, Can someone explain to me what xterm-color is? I do most of my coding on Emacs over telnet sessions with my school's server, and I recently discovered that if I set TERM=xterm-color in my environment, then emacs will will send colored syntax highlighting over telnet. That's great,... (4 Replies)
Discussion started by: lantern
4 Replies
Login or Register to Ask a Question