Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved: Change Default Xterm Colors
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 535
Location: Flakey Shake & Bake Caliornia, USA

PostPosted: Tue May 13, 2025 10:05 pm    Post subject: Solved: Change Default Xterm Colors Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23440

PostPosted: Tue May 13, 2025 11:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 535
Location: Flakey Shake & Bake Caliornia, USA

PostPosted: Wed May 14, 2025 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23440

PostPosted: Wed May 14, 2025 12:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6285
Location: Dallas area

PostPosted: Wed May 14, 2025 12:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
FastTurtle
Guru
Guru


Joined: 03 Sep 2002
Posts: 535
Location: Flakey Shake & Bake Caliornia, USA

PostPosted: Wed May 14, 2025 1:19 pm    Post subject: Reply with quote

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. :lol:
_________________
AsRock Rack Rome8-2t
AMD Epyc 7282 CPU
192GB of ECC memory
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6285
Location: Dallas area

PostPosted: Wed May 14, 2025 1:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum