LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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,695

Rep: Reputation: 56
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 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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,695

Original Poster
Rep: Reputation: 56
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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