XTerm Not Loading Full .Xresources Config

This forum is for discussion about general software issues.

XTerm Not Loading Full .Xresources Config

Postby tmmd » Sat Jan 25, 2020 10:30 pm

Hi there,

I'm new to Arch Linux ARM and trying to get a Raspberry Pi 4 set up starting from scratch. I'm running into a problem with xterm where it isn't loading all of the info from my ~/.Xresources file (I've copied the file below). I got most of what's in ~/.Xresources from the Arch wiki and this person's config (https://github.com/gotbletu/shownotes/b ... sources.md), so I trust that it's (mostly) good syntactically, but of course let me know if that's mistaken.

Xterm loads the theme portion from the bottom of the file, as the in-terminal color scheme is changed in the way I'd expect. However, xterm doesn't seem to be loading anything else from the file. There are a few config options that I'm not sure how to test, so it might be loading them. Also, the cursor isn't blinking so maybe it's reading that line, but I think that's the default behaviour so maybe it's not. My guess is that xterm is able to load the generic config lines that start with *, but for some reason it isn't able to load the more specific ones that start XTerm*.

The thing I've tried the longest getting set up correctly is the font setup portion, as I thought that was the source of the problem. However, I eventually stumbled on the 'xterm -fa -fs' command and when I run 'xterm -fa 'Source Code Pro' -fs 14' it opens a new terminal with Source Code Pro as the font at size 14. That makes me think the problem I'm running into is something deeper with how xorg/xterm is handling my .Xresources file. However, I'm not sure what that might be.

So, any pointers you could give me about what to do/research from here would be greatly appreciated. My best guess is that I'm leaving something that I don't know to include out of .Xresources (or a similar Xorg config file), or that there's some package I don't know about that I need to install to allow for xterm configuration. But at this point those are pretty uninformed guesses. And of course, if there's any extra info you could use just let me know.


Best,

Thomas


$this->bbcode_second_pass_code('', '! Xterm Terminal Emulator Config File ===================================
!
!
! Based on:
! https://github.com/gotbletu/shownotes/blob/master/xterm_xresources.md
! https://wiki.archlinux.org/index.php/Xterm#Configuration
! https://draculatheme.com/xresources/
!
! ========================================================================



! Set terminfo name (options: xterm, xterm-256color) --------------------
XTerm.termName: xterm-256color

! Font Setup ------------------------------------------------------------
Xterm*faceName: Source Code Pro
Xterm*faceSize: 14
xterm*faceSize1: 8
xterm*faceSize2: 10
xterm*faceSize3: 12
xterm*faceSize4: 16
xterm*faceSize5: 22
XTerm.scaleHeight: 1.5

! Ensure locale is setup for UTF-8
XTerm.vt100.locale: true

! Cursor Setup -----------------------------------------------------------
XTerm*pointerColor: white
XTerm*pointerColorBackground: black
XTerm*cursorColor: white
XTerm*cursorBlink: false

! Text Selection Setup ---------------------------------------------------
XTerm*highlightSelection: true
XTerm*trimSelection: true

! Scroll Setup -----------------------------------------------------------
XTerm*saveLines: 16384

! Keybindings ------------------------------------------------------------
XTerm.vt100.translations: #override \n\
Ctrl <Key> minus: smaller-vt-font() \n\
Ctrl <Key> plus: larger-vt-font() \n\
Ctrl Shift <Key>C: copy-selection(CLIPBOARD) \n\
Ctrl Shift <Key>V: insert-selection(CLIPBOARD)

XTerm*fullscreen: never
XTerm*vt100.backarrowKey: false
XTerm*ttyModes: erase ^?


! Theme: Dracula ---------------------------------------------------------
! ------------------------------------------------------------------------
*.foreground: #f8f8f2
*.background: #282a36
*.color0: #000000
*.color8: #4d4d4d
*.color1: #ff5555
*.color9: #ff6e67
*.color2: #50fa7b
*.color10: #5af78e
*.color3: #f1fa8c
*.color11: #f4f99d
*.color4: #bd93f9
*.color12: #caa9fa
*.color5: #ff79c6
*.color13: #ff92d0
*.color6: #8be9fd
*.color14: #9aedfe
*.color7: #bfbfbf
*.color15: #e6e6e6')
tmmd
 
Posts: 17
Joined: Sun Jan 19, 2020 3:34 am

Re: XTerm Not Loading Full .Xresources Config

Postby tmmd » Sat Feb 08, 2020 2:47 am

Quick update. It looks like the problem has to do with my use of wildcards (*). I haven't found the right way of using wildcards, as the way I used them in my original .Xresources mirrors the .Xresources files I've looked at on GitHub. However, by replacing the wildcards with ".vt100." I've gotten the whole file working like I wanted.

It's mostly for my own curiosity at this point, but if you have any thoughts about how to get the wildcards working properly do let me know.
tmmd
 
Posts: 17
Joined: Sun Jan 19, 2020 3:34 am


Return to General

Who is online

Users browsing this forum: No registered users and 25 guests