View previous topic :: View next topic |
Author |
Message |
FastTurtle Guru

Joined: 03 Sep 2002 Posts: 535 Location: Flakey Shake & Bake Caliornia, USA
|
Posted: Tue May 13, 2025 10:05 pm Post subject: Solved: Change Default Xterm Colors |
|
|
Using Fluxbox and happy but trying to get xterm with black background/white foreground instead of the white background/black foreground to make it easier to read.
Have tried .xdefaults in my home folder but no change - am willing to edit the fluxbox menu to ensure xterm uses the desired colors or change to a terminal using the console colors (much preferred).
The only thing Google came up with is from 2020 and older so almost useless due to changes in gentoo. _________________ AsRock Rack Rome8-2t
AMD Epyc 7282 CPU
192GB of ECC memory
Last edited by FastTurtle on Wed May 14, 2025 1:19 pm; edited 1 time in total |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23440
|
Posted: Tue May 13, 2025 11:17 pm Post subject: |
|
|
My ~/.Xresources hasn't been changed in many years, and still works fine. I don't think a result being from 2020 necessarily means the result is invalid. I note that you tried ~/.xdefaults, which is not a name I have seen used before. The name I use is traditional, I think, but even so, my ~/.xinitrc is responsible for loading it: xrdb -merge ~/.Xresources. Is your problem that the resources are not loaded, or that once loaded, they have no effect? |
|
Back to top |
|
 |
FastTurtle Guru

Joined: 03 Sep 2002 Posts: 535 Location: Flakey Shake & Bake Caliornia, USA
|
Posted: Wed May 14, 2025 2:16 am Post subject: |
|
|
Hu:
Thanks for the feedback. Been looking all over the net and of course the forums and the information seems to be wrong. The ~.Xdefaults was actually the 2020 post in the forums but from another distro forum as a possibility.
I will definately give ~.Xresources a shot to see if it'll work with the xinitrc comment you've provided. The way I've been using the xinitrc is to switch between fluxbox, enlightenment or in the main build kde without having to drop to a gui log-in manager such as sddm. It's a bit of a cludge at times but works well enough I haven't seen a reason to change as sddm does not allow root log-ins for some reason and I need the cli often enough as yet due to installing/tweaking settings.
What I'm assuming is that I'd add the line Code: | xterm: bg=black, fg=white" | though I'll have to review what I've read unless you can provide? _________________ AsRock Rack Rome8-2t
AMD Epyc 7282 CPU
192GB of ECC memory |
|
Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 23440
|
Posted: Wed May 14, 2025 12:31 pm Post subject: |
|
|
Code: | xterm*background: #000000
xterm*foreground: #ffffff |
You should not need an X session running as root. If you need root privilege, open a terminal and use /bin/su -. |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6285 Location: Dallas area
|
Posted: Wed May 14, 2025 12:36 pm Post subject: |
|
|
From my old .Xdefaults file
Code: | ! --- xterm parms
xterm*geometry: 120x45
xterm*foreground: White
xterm*background: Black
xterm*saveLines: 400
xterm*backarrowKeyIsErase: true
xterm*termName: xterm
xterm*faceName: Terminus:style=Medium
xterm*faceSize: 14 |
always worked for me.
Edit to add: the above is just a sample of things that can be set in .Xdefaults or .xresources _________________ UM780, 6.14 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
 |
FastTurtle Guru

Joined: 03 Sep 2002 Posts: 535 Location: Flakey Shake & Bake Caliornia, USA
|
Posted: Wed May 14, 2025 1:19 pm Post subject: |
|
|
Hu:
I normally use su in a terminal - much faster though it does depend on the terminal if it works. EG Terminology for some reason would fail the passwd authentication for some reason and not sure why but Don't Care as xterm does work. Just wrong colors.
Anon-E-moose:
that goes into the ~.Xdefaults in the home folder?
Now all I need to do is find the XTerm-Color file again and configure that to be the default. Then it's a single file to edit for global xterm settings.  _________________ AsRock Rack Rome8-2t
AMD Epyc 7282 CPU
192GB of ECC memory |
|
Back to top |
|
 |
Anon-E-moose Watchman


Joined: 23 May 2008 Posts: 6285 Location: Dallas area
|
Posted: Wed May 14, 2025 1:29 pm Post subject: |
|
|
FastTurtle wrote: | Anon-E-moose:
that goes into the ~.Xdefaults in the home folder? |
Yes _________________ UM780, 6.14 zen kernel, gcc 13, openrc, wayland |
|
Back to top |
|
 |
|