Author Topic: Xterm settings  (Read 2025 times)

John Temple

  • Newbie
  • *
  • Posts: 7
    • View Profile
Xterm settings
« on: May 16, 2018, 09:51:30 am »
Hello group

I’m busy setting up Debian for my work and so far it’s actually working well. The small form factor is perfect for what I do. The only issue I’m having is the font size for XTerm. I’ve tried creating a custom Xresources file but either my syntax is wrong or I’m going about this wrong. Anyone figured this out?

Thanks

John

depscribe

  • Sr. Member
  • ****
  • Posts: 254
    • View Profile
Xterm settings
« Reply #1 on: May 16, 2018, 11:52:26 am »
Quote from: John Temple
Hello group

IÂ’m busy setting up Debian for my work and so far itÂ’s actually working well. The small form factor is perfect for what I do. The only issue IÂ’m having is the font size for XTerm. IÂ’ve tried creating a custom Xresources file but either my syntax is wrong or IÂ’m going about this wrong. Anyone figured this out?

Thanks

John
If you set Qterm as the default (actually, even if you don't and just open it from the menu) you can set via menu the font and size of window you want.
dep

Atari Portfolio (yes, it still works and yes, I bought it new)
Libretto 110 CT (with docking station and all kinds of PCMCIA stuff)
And, now, a Gemini and, fortunately, a GPD Pocket

vader

  • Sr. Member
  • ****
  • Posts: 296
    • View Profile
Xterm settings
« Reply #2 on: May 16, 2018, 09:34:56 pm »
Quote from: John Temple
Hello group

I’m busy setting up Debian for my work and so far it’s actually working well. The small form factor is perfect for what I do. The only issue I’m having is the font size for XTerm. I’ve tried creating a custom Xresources file but either my syntax is wrong or I’m going about this wrong. Anyone figured this out?

Thanks

John

You can change the shortcut to:

xterm -fa font -fs size

the font is pattern matched with -fa, and the size is in points. So if you want a terminal (fixed) font of size 25 points, use:

xterm -fa 'terminal' -fs 25

You can of course edit your Xresources, just remember to merge afterwards (or restart X). Merge with:

xrdb -merge ~/.Xresources (or where ever you put your resource file).

The resource syntax is something like:
xterm*font:    *-pattern-*-*-*-size-*

eg:
xterm*font: *-terminal-*-*-*-25-*

From memory.
Hope this helps.

John Temple

  • Newbie
  • *
  • Posts: 7
    • View Profile
Xterm settings
« Reply #3 on: May 17, 2018, 07:19:57 am »
Quote from: vader
Quote from: John Temple
Hello group

I’m busy setting up Debian for my work and so far it’s actually working well. The small form factor is perfect for what I do. The only issue I’m having is the font size for XTerm. I’ve tried creating a custom Xresources file but either my syntax is wrong or I’m going about this wrong. Anyone figured this out?

Thanks

John

You can change the shortcut to:

xterm -fa font -fs size

the font is pattern matched with -fa, and the size is in points. So if you want a terminal (fixed) font of size 25 points, use:

xterm -fa 'terminal' -fs 25

You can of course edit your Xresources, just remember to merge afterwards (or restart X). Merge with:

xrdb -merge ~/.Xresources (or where ever you put your resource file).

The resource syntax is something like:
xterm*font:    *-pattern-*-*-*-size-*

eg:
xterm*font: *-terminal-*-*-*-25-*

From memory.
Hope this helps.


Thanks.....I totally forgot to merge and for some reason, it wasn't persistent. Working now.