LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-19-2006, 09:53 AM   #1
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Rep: Reputation: 15
how to make terminal Color ful


Hi !
As you know that mostly GUI of Solaris 9 is not good . So i want to change me color of terminal and do so thing like that . Can we change color of terminal.
Regards.
Sajid.
 
Old 06-19-2006, 09:59 AM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Well, if you're using xterm you can change the foreground and background colors using xterm options -fg and -bg, or using your .Xresources / .Xdefaults file. Here's an excerpt from my own .Xresources file:
Code:
XTerm.vt100.background: black
XTerm.vt100.boldMode: false
XTerm.vt100.cursorBlink: true
XTerm.vt100.cursorColor: white
XTerm.vt100.font: -dec-terminal-bold-r-normal--14-140-75-75-c-80-iso8859-1
! XTerm.vt100.faceName: "Bitstream Vera Sans Mono"
! XTerm.vt100.faceSize: 10
XTerm.vt100.foreground: white
XTerm.vt100.geometry: 100x40
! XTerm.vt100.rightScrollBar: true
XTerm.vt100.saveLines: 1000
XTerm.vt100.scrollBar: false
To enable these settings, use `xrdb -merge .Xresources`.

If you're using gnome-terminal, there are options available from the menu that let you change what colors it uses for foreground and background.
 
Old 06-19-2006, 10:39 AM   #3
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Hi !
I m new to this solaris world and didnt getting many terms. Kindly tell me how can i know that i m using xterm or not. whats the location of .Xresources file and how i can i make changing in it.
Plz dont mind as i m beginner to this. Do help me.
Regards.
Sajid.
 
Old 06-19-2006, 10:50 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Solaris 9 uses CDE, so the terminal emulator you are using is likely dtterm.

Try the following lines in the file $HOME/.Xdefaults

Dtterm*userFont: 10x20
Dtterm*geometry: 80x25
Dtterm*background: black
Dtterm*foreground: cyan
 
Old 06-20-2006, 08:49 AM   #5
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Hi jilliagre !
thx for previous help. sorry to disturb u for little things but i told u i m new to this solaris world.
can u plz tell me the location of this file $HOME/.Xdefaults
Regards.
 
Old 06-20-2006, 10:56 AM   #6
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
The file is called ".Xdefaults" located in your home directory. Type "echo $HOME" at your shell prompt to find out what the absolute path to your home directory is.

It seems like you're really new at working from the CLI, so I'd recommend doing an internet search for some Unix tutorials to work through, so you can get more accustomed to working from the command-line. Such tutorials would be very helpful later on, if you're unfamiliar with Unix.
 
Old 06-22-2006, 04:38 AM   #7
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
Hi!
There is no .Xdefaults file in my Home directory. I got only file like that its .Xauthority.
Regards.
 
Old 06-22-2006, 06:28 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
That's fine, feel free to create one.
 
Old 06-22-2006, 07:41 AM   #9
sajidmumtaz
Member
 
Registered: Jan 2006
Posts: 59

Original Poster
Rep: Reputation: 15
hi !
i have created file .Xdefaults b4 seeing the msg. i wrote that code u sent me.
i create file .Xdefaults and open it using pico then save it by .Xdefaults . I guess i have to compile or do some thing. Not Sure wat to do.
I know some of my questions seems stupid to u but tell me wat next i should do.
Regards.
 
  


Reply



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
How to make the directories and files in color in the terminal leonall Linux - Newbie 1 03-09-2006 09:13 PM
Fedora Core 4 Terminal Color placster Linux - Newbie 7 12-14-2005 02:12 PM
Terminal background color not working mijohnst Linux - Newbie 2 10-03-2005 04:11 PM
Terminal font and color berkay Linux - Newbie 10 09-23-2004 02:19 AM
get terminal color? cratos Programming 0 07-16-2003 03:04 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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