Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!decwrl!purdue!bu-cs!bloom-beacon!WAYBACK.UNM.EDU!ron From: ron@WAYBACK.UNM.EDU Newsgroups: comp.windows.x Subject: Portable server release clients (How is it done?) Message-ID: <8811170001.AA21807@wayback.unm.edu> Date: 17 Nov 88 00:01:28 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 57 How does one go about writing an X11 client independent of the server release? Here is an example: say you have a client and you want it to work on R2 and R3, but it uses Fonts. Problem: R2 Fonts use the file name convention and R3 Fonts use the ISO Latin-1 naming convention. Soln: Maybe one of the display macros will tell me the release number? XVendorRelease will return a number related to a vendor's release of the X server. Our MIT servers return 2 for R2 and 3 for R3, but one of our DEC machines is running DECWINDOWS (vendor = "DECWINDOWS DigitalEquipmentCorp.") and returns (release = 11) I guess this is okay, since this is the vendor release of the server. Problem: Why doesn't the display structure have an entry for the MIT X Consortium based revision number? *OR* some other method for telling clients what the server expects, be it fonts names or what ever else will change in coming releases. I hope that I'm missing something! But if I'm not, how are we going to ever write independent server release clients? VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV Ron E. Neher University of New Mexico Dept. of Electrical & Computer Engineering Albuquerque, NM 87131 (505) 277-0809(office)/0801(lab) NET-ADDRESS: ron@wayback.unm.edu OR ron%wayback@ariel.unm.edu ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^