× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, 16 Jun 2004, Scott Klement wrote:

> > These color problems are almost certainly a result of your environment
> > setting the foreground and background colors.  David Gibbs noticed that if

> My .Xdefaults file doesn't have any color definitions in it.  And I NEVER
> use gtkterm, I always use xterm.

> I use Gnome, but I don't use gnome terminal or any of that... I use xterm.
> I'm not sure what setting you're referring to.  But Gnome hasn't changed
> between version 0.1.2 and 0.1.5...

I found out what is happening.  Gnome forces all applications that have
the standard X foreground and background resources to be like this (at
least on my slackware):

*background:    #e2e2de
*foreground:    #000000

This I found out by running 'xrdb -query'.  Most likely this is a result
of Gnome putting a theme on everything.  So chances are that x5250 will
have the same foreground and background settings as your xterm unless you
have xterm-specific settings in your .Xdefaults.  I didn't discover this
until now since I don't use Gnome.

So now I'm left in a quandry.  If I follow the traditional X conventions
then Gnome users will be unhappy about the colors.  Really, the if the
foreground resource is set, it should control green, red, yellow, blue,
turquoise, and white - i.e. make them all them same color.  That is how a
traditional X app would work.  I made it so that setting the colors
explicitly would trump the foreground and background resources, which
isn't the way things would normally work.  If I ignore the foreground and
background resources it ceases to follow traditional X methods.
Personally, I would prefer that Gnome didn't set a global foreground and
background setting, but that ain't gonna fix nothin' :)

In version 0.1.2 the foreground and background resources didn't work and
that's why the colors came up right for you then.

So I can either remove the foreground and background resources (I don't
like this option very much) or I can ship some reasonable resource files
with x5250 (I like this better but proper installation may be problematic
for some users).  Similar to the way that tn5250 install an XTerm resource
file, x5250 probably needs an X5250 resource file in
/usr/X11/app-defaults.

James Rich

Vs lbh guvax bs argjbex frphevgl nf na vzzhar flfgrz, Jvaqbjf vf UVI.
        -- Wbr Cyhgn

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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