I've had the misalignment problem in xt5250 for many months, since
upgrading to SuSE Linux 9.1 (I'm currently on 9.2).

I finally found it's related to Unicode and UTF-8.  It looks like xterm
is interpreting some characters that translate to ASCII codes > x80 as
Unicode.

In SuSE 9.2 the LANG environment variable is "en_US.UTF-8".  It was
"en_US" in SuSE 9.0 (in which xt5250 worked OK).

So to turn off the UTF-8 mode, I put this line in xt5250:

LANG=en_US

and added LANG to the export statement.

That fixed the misalignment.  Also, it cleared up the "screen bleeding"
problem I was seeing.  It was most obvious when doing DSPPFM on a file
that had bytes that translate to ASCII codes > x80, such as in binary
and packed fields.  As you roll through the file, parts of the data
would be misaligned, and after rolling to the next screen, some
characters would remain where they had been on the previous screen.

But I haven't found how to fix the misalignment when using tn5250 in a
console.  I see there's a line

CONSOLE_ENCODING="UTF-8"

in /etc/sysconfig/console, so maybe fiddling with that will help.  Or
maybe some option in setfont.  But I guess that would affect all
consoles; maybe changes would have to be made in tn5250.  I don't use
tn5250 in a console so it's not a priority for me.

--Dave


On Fri, 2004-12-17 at 16:43:19, Sean Porterfield wrote:
> James Rich wrote:
> > > The columns do not line up for me in xt5250.
> >
> > They don't? Are you using a proportional font?  Can you make a
> > screen shot and post it?
>
> http://linux.porterfield.net/FC3-testscreen.png
>
> I didn't change my font (since it won't change!)  I don't know  what
> font it is, but it doesn't look proportional to me.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 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.