Config Files for Xterm

Config Files for Xterm

Is there any config files for xterm for default settings? For example, on my system, xterm start with black text on white background, and I want it the other way around. I can do it by starting it with:

xterm -bg black -fg white.

I want to set in a config file that if I run it without arguments, it will start with these options.

1 Answer

Add these lines to a file named .Xdefaults in your home directory.

xterm*background:   black
xterm*foreground:   white

Then, run xrdb .Xdefaults and launch xterm :)

And here's a full guide to .Xdefaults if you want more:

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.