Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!apple!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Problems with xedit and X Resources Message-ID: <8904181900.AA20467@expo.lcs.mit.edu> Date: 18 Apr 89 19:00:22 GMT References: <1431@Portia.Stanford.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 56 > #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. This is a known and fixed bug in the Athena Text Widget. This bug causes it to ignore the reverse video parameters. Here is a quick fix. This is not an "official" patch, and may cause your sources to conflict with future patches, but it does fix the problem. The other option is to specify "Foreground", "Background", and "BorderColor" resources which will allow things to work. Chris D. Peterson MIT X Consortium *** lib/Xaw/AsciiSink.c Tue Apr 18 14:55:14 1989 --- /tmp/,RCSt2a20304 Tue Apr 18 14:55:20 1989 *************** *** 53,65 **** static char *buf = NULL; - /* XXX foreground default should be XtDefaultFGPixel. How do i do that?? */ - static XtResource SinkResources[] = { {XtNfont, XtCFont, XtRFontStruct, sizeof (XFontStruct *), XtOffset(AsciiSinkPtr, font), XtRString, "Fixed"}, {XtNforeground, XtCForeground, XtRPixel, sizeof (int), ! XtOffset(AsciiSinkPtr, foreground), XtRString, "Black"}, }; /* Utilities */ --- 53,63 ---- static char *buf = NULL; static XtResource SinkResources[] = { {XtNfont, XtCFont, XtRFontStruct, sizeof (XFontStruct *), XtOffset(AsciiSinkPtr, font), XtRString, "Fixed"}, {XtNforeground, XtCForeground, XtRPixel, sizeof (int), ! XtOffset(AsciiSinkPtr, foreground), XtRString, "XtDefaultForeground"} }; /* Utilities */