|
On Sun, 12 Aug 2001, dblair wrote:
>
> I'm no C programmer nor a Linux guru, so when I compiled the source on my Red
> Hat 7.1 machine, I was surprised to have it pop up in such small font. I'm
> running 1024x768 on a 14" monitor here at home, and need to do work remotely
> on an AS/400.
>
> In simple terms, what do I need to change to get larger characters?
>
The font size that's used when you launch xt5250 is the default size for
your xterm.
I know of 3 different ways to change it:
1) You can hold down the Ctrl key, and right-click in the xt5250 window.
The disadvantage to this method is that it the setting doesn't
"stick", you have to do it each time you launch xt5250. This method
will work with any application running in an xterm, though...
2) You can set the "font_80" and "font_132" variables in your tn5250rc
to be the fonts & sizes that you want to use. The only disadvantage
to this method is that it was added to the emulator somewhat
recently, so you need to be running the current version from CVS.
here's a sample .tn5250rc using these variables:
session1 {
host=iseries.whatever.com
env.DEVNAME=DSP01
env.TERM=IBM-3477-FC
font_80=10x20
font_132=6x13
}
adjust those fonts however you want... remove the "env.TERM" line
if you don't want it to ever switch to 132 column mode...
3) Edit the source of your xt5250 script, so that it sets the font in
there. This is kind-of a "hack", and you'll have to re-make
the change each time you reinstall tn5250, but it works in older
versions of tn5250, where the "font_80" and "font_132" variables
don't.
To try this, edit your xt5250 script (usually /usr/local/bin/xt5250)
and find the line that looks like this:
exec xterm -name "xt5250" -bg black -fg white -T "xt5250 - $XT5250_HOST" \
+sb -tn xterm-5250 -geometry 80x25 -e "$0" -BOOT "$@"
then add the '-fn' switch to set the font, like this:
exec xterm -name "xt5250" -bg black -fg white -T "xt5250 - $XT5250_HOST" \
+sb -tn xterm-5250 -fn 10x20 -geometry 80x25 -e "$0" -BOOT "$@"
> Thanks!
>
> David
hope that helps...
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.