Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!decwrl!shelby!Portia!jessica.stanford.edu!drapeau From: drapeau@jessica.stanford.edu (George D. Drapeau) Newsgroups: comp.windows.x Subject: Problems with xedit and X Resources Keywords: long, help, toolkit Message-ID: <1431@Portia.Stanford.EDU> Date: 11 Apr 89 02:30:06 GMT Sender: USENET News System Reply-To: drapeau@jessica.stanford.edu (George D. Drapeau) Organization: Stanford University Lines: 58 Here's my environment, first of all: Sun4/110, SunOS 4.0.1, X11R3 with Purdue patches and fixes 1-9. The problem I'm having is with several applications that use the X Toolkit, but I'll limit my question to xedit. Here's the deal: I'm trying to setup my .Xdefaults file so that if I'm not using a color server, my windows will be white-on-black for the most part. The quickest way for me to do this was to have an entry at the top of my .Xdefaults file that said something like this: #ifdef COLOR !color specs here #else *ReverseVideo: on #endif I'm not sure if this is the best way to go about it, but for the most part it works. However, for some programs (namely xedit) it does not work. Specifically, the large window in which you type text (called the "editWindow") should be white characters on black background, but that doesn't happen. Instead what I seem to get is black on black, so I can't see anything. After reading the xedit man page, I put these lines in my .Xdefaults file: *ReverseVideo: off xedit*editWindow*Foreground: White xedit*editWindow*Background: Black (so I tried to force a 'reversevideo' effect on just the one window) The effect was that the editWindow's scrollbar background became black, but the text in that window remained black on white, opposite of what I expected. One more thing. When I tried to be more general and use the following: *ReverseVideo: off xedit*Text*Foreground: White xedit*Text*Background: Black the effect was that both scrollbars' backgrounds became black, the three small input boxes became white-on-black, but the 'messageWindow' and 'editWindow' remained black-on-white. What am I doing wrong here? I have observed similar behavior from 'xmh' and 'xman'. And if these programs exhibit the behavior I described, why doesn't xterm? Any help you could provide would be much appreciated. Thanks in advance, Confused and Anxious ______________________________________________________________________________ George D. Drapeau Internet: drapeau@jessica.stanford.edu Academic Information Resources Stanford University