🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1879

Re: Background and attributes

#1879
From: Alan M. Carroll
Date: Tue, 18 Jun 1991 13:25
41 lines
2850 bytes
In article <1991Jun12.184224.1006@src.honeywell.com>, alarson@SRC.Honeywell.COM (Aaron Larson) writes:
> In article <1991Jun11.165809.3239@bellcore.bellcore.com> dana@dino.bellcore.com (Dana A. Chee) writes:
> 
>    ...I have different color
>    windows for different modes.  What I'd like is to have the foreground
>    set to a color (for an attribute) while the background is set to be
>    the background of the window its used in....

Remember that each screen has a set of local attributes, in addition
to global attributes, so you can override the global attribute with a
screen local one for that screen. I use this for my MH screen code.

> 
> I use the following to approximate this.  What *I* really want is per buffer
> attributes, not per screen.

I've been thinking about this problem for a while. The problem with
buffer local attributes is that the display algorithms are not
sophisticated enough to handle the problems that arise in such a case.
Chris is working on a version to get around this, but it's not
expected anytime soon.

A temporary fix that I've been meaning to implement is to allow a
style color to be set to t, in addition to a color or nil. t would
mean "use the current screen value", so that the problem above could
be solved by setting the background color to t instead of setting up
local styles for every screen that is created. I'll try to do this and
provide a patch in the near future, although it might not be an
official patch.

As a side comment on your code, you might want to be a little careful
with using epoch::create-screen instead of create-screen. The latter
does a number of other things that are desireable, foremost being that
it sets the WM_PROTOCOLS property on the new screen, to indicate that
Epoch will receive WM_PROTOCOL_DELETE messages. Check out the code in
epoch.el for more detail.

-- 
Alan M. Carroll          <-- Another casualty of applied metaphysics
Epoch Development Team   
Urbana Il.               "I hate shopping with the reality-impaired" - Susan
Technical Details
Message-ID: <1991Jun18.132522.6652@m.cs.uiuc.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!decwrl!sun-barr!lll-winken!elroy.jpl.nasa.gov!swrinde!mips!pacbell.com!att!news.cs.indiana.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!uiucdcs!carroll
References: <1991Jun11.165809.3239@bellcore.bellcore.com> <1991Jun12.184224.1006@src.honeywell.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,6962f2b3b1e60fe5,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-06-18 12:00:52 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!decwrl!sun-barr!lll-winken!elroy.jpl.nasa.gov!swrinde!mips!pacbell.com!att!news.cs.indiana.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!uiucdcs!carroll
From: carroll@cs.uiuc.edu (Alan M. Carroll)
Newsgroups: gnu.epoch.misc
Subject: Re: Background and attributes
Message-ID: <1991Jun18.132522.6652@m.cs.uiuc.edu>
Date: 18 Jun 91 13:25:22 GMT
References: <1991Jun11.165809.3239@bellcore.bellcore.com> <1991Jun12.184224.1006@src.honeywell.com>
Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager))
Organization: Delta Group
Lines: 41
Nntp-Posting-Host: ash.cs.uiuc.edu