LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 10-01-2007, 02:27 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,423

Rep: Reputation: 53
How to change Xterm colours


Hi folks,


Ubuntu 7.04 server amd64


I want to change the colours on Xterm but I can't find ".Xdefaults" nor ".Xresources"

$ sudo find / -name .Xdefaults/.Xresources/.Xdefault/.Xresource
all w/o printout


Pls advise which file contains the relevant information? TIA


Whether to change colour:
Code:
XTerm*background:   white
XTerm*foreground:   black
XTerm*highlightColor:  yellow
will display "white background", "black characters" and "yellow on highlight"?

Then run

$ sudor xrdb ~/.Xresources (.file)
???

Thanks



Edit:
xtermcontrol 2.9
http://linux.softpedia.com/get/Termi...rol-9484.shtml

Does this package work for my purpose ?


B.R.
satimis

Last edited by satimis; 10-01-2007 at 02:31 AM.
 
Old 10-01-2007, 05:42 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,731
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
Set xterm configurations in the file <XORG_PREFIX>/share/X11/app-defaults/XTerm where XORG_PREFIX is the prefix you have X Windows installed (e.g., /usr, /usrX11R6, etc.) If the file doesn't exist, then create it. Also, if the files .Xdefaults and .Xresources don't exist, just create them.
 
Old 10-01-2007, 05:54 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,423

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by weibullguy View Post
Set xterm configurations in the file <XORG_PREFIX>/share/X11/app-defaults/XTerm where XORG_PREFIX is the prefix you have X Windows installed (e.g., /usr, /usrX11R6, etc.) If the file doesn't exist, then create it. Also, if the files .Xdefaults and .Xresources don't exist, just create them.
Thanks for your advice.

I found the trick which is on /etc/X11/app-defaults/XTerm-color file.


Performed following steps;

Edited /etc/X11/app-defaults/XTerm-color
- comment out
*VT100*foreground: gray90"
*VT100*background: black

- uncomment
!*VT100*foreground: black
!*VT100*background: gray90

$ cat /etc/X11/app-defaults/XTerm-color
Code:
....

! Set the default text foreground and background colors.
!*VT100*foreground: gray90
!*VT100*background: black

! - OR -
! Uncomment this for black text on a "white" background.
*VT100*foreground: black
*VT100*background: gray90

.....
Restarted Xterm. Now I have grey background and black characters.


satimis
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Editing /etc/DIR_COLORS does not change colours in terminal ethics Linux - General 6 02-27-2014 01:56 AM
Change font color xterm aeruzcar Linux - Software 3 01-04-2012 04:48 PM
Colours in Xterm, Xmms and mounting issues cheema Debian 13 01-12-2006 02:58 PM
Can I set ssh to change my konsole colours when I connect to a remote box? davee Linux - General 2 12-16-2004 02:56 PM
xterm font change asc3ndant Linux - General 0 06-23-2003 07:47 PM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration