OESF Portables Forum

Model Specific Forums => Gemini PDA => Gemini PDA - Linux => Topic started by: John Temple on May 16, 2018, 09:51:30 am

Title: Xterm settings
Post by: John Temple 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
Title: Xterm settings
Post by: depscribe 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.
Title: Xterm settings
Post by: vader 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.
Title: Xterm settings
Post by: John Temple 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.