bob@odi.COM (Bob Miner) (02/27/90)
If an X client supports both the -rv (reverse video) command line option AND supports background and foreground resources, is there any official or defacto standard on how the 2 should interact? For example, if the person is starting some X application called 'xapp' and has resources as shown in their .Xdefaults file: xapp*background: Black xapp*foreground: White and starts xapp with the command xapp -rv & should xapp have a black foreground on a white background or vica-versa? I tried this with xterm (X11R3) and emacs and they gave opposite results. xterm gave me a black foreground on white background (in essence doing a double negative) and emacs gave me white foreground on black background. I realize that this is a somewhat silly question. But, heh, I like silly questions now and then. It's not that silly, however, in that I have to choose one or the other behavior for my X applications. Bob Miner ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OOOOOOO ~ Bob Miner OOOO OOOO ~ 1 New England Executive Park OOOOO OOOOO ~ Burlington, MA 01803 USA OOOO OOOO ~ (617) 270-9797 OOOOOOO bject Design Inc. ~ bob@odi.com or uunet!odi!bob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mouse@LARRY.MCRCIM.MCGILL.EDU (der Mouse) (03/02/90)
> If an X client supports both the -rv (reverse video) command line > option AND supports background and foreground resources, is there any > official or defacto standard on how the 2 should interact? I don't know, but it seems to me that least surprise requires that using -rv always produce the reverse from what you'd get from the same invocation without the -rv. > For example, if the person is starting some X application called > 'xapp' and has resources as shown in their .Xdefaults file: > xapp*background: Black > xapp*foreground: White > and starts xapp with the command > xapp -rv & > should xapp have a black foreground on a white background or > vica-versa? Since skipping the -rv produces white-on-black, using -rv should reverse this and produce black-on-white. IMO, of course. der Mouse
kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) (03/03/90)
> > If an X client supports both the -rv (reverse video) command line > > option AND supports background and foreground resources, is there any > > official or defacto standard on how the 2 should interact? > I don't know, but it seems to me that least surprise requires that > using -rv always produce the reverse from what you'd get from the same > invocation without the -rv. The X Toolkit takes a different approach. It defines reverse video to be "swap the default foreground and background colors." Read: White on Black. If explicit colors are specified then the reverse video argument is overriden by the explicit color declarations. This is a close to a "standard" in this area as X is going to get. Since all toolkit applications do it this way you may want to be compatible with it. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213