Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I'm using Fedora Core 4.
I want to change the default appearance of Xterm, but i don't know how.
I've looked through the man pages ('man xterm') i learned i can change it at every start with option parameters, but this is pretty annoying, i want the Xterm window to be white on black, and slightlx larger font as default.
I've been searching for some xterm.conf files, but i couldn't find anything.
people in IRC channeld told me to read the man page closeley, but maybe i'm just too dumb, i don't know, anyways, i could find an answer to my question
Please, does anybody know, how to change the defaults for xterm?
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
you do this with command line parameters:
xterm -fg white -bg black
this doesn't mean you have to type this every time you can add it to the command that runs when you click the icon or you can make a little script. just figure out the command line options that make it look like you want and put that command in a text file somewhere in your path and chmod it.
echo "xterm -fg white -bg black" > /usr/local/bin/myterm
(or use your faveorite text editor name and location are not important as long as it's in your path {env will list the environment variables including your path})
chmod 755 /usr/local/bin/myterm
(this will make it executeable)
myterm
(now whatever name you use will run whatever commands you stuck in the text file so you get your xterm with your setings)
you should easily be able to tie this (or any other command) to an icon or menu entry.
Last edited by johnson_steve; 07-24-2005 at 12:39 PM.
to your ~/.Xresources or ~/.Xdefaults. This is my config, so modify it as you like. It uses antialiased fonts, turns reverse video on (i.e. white text on black background, this is really how it should be done to get the colors working like in console screens instead of setting foreground and background), sets cursor blinking and makes backspace and delete keys behave etc.
Make sure your system includes your .Xdefaults or .Xresources (there should be something like xrdb -merge ~/.Xresources somewere in your /etc/X11/xinit/xinitrc or ~/.xinitrc).
All the available resources can be found from xterm's manpage. It's really surprisingly configurable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.