Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!killer!ames!pasteur!ucbvax!hplabs!hpda!hpcupt1!hpsal2!morrell From: morrell@hpsal2.HP.COM (Michael Morrell) Newsgroups: comp.sources.wanted Subject: Re: Portability problems. Message-ID: <9490002@hpsal2.HP.COM> Date: 10 Oct 88 23:28:39 GMT References: <200@anselm.UUCP> Organization: HP System Architecture Lab, Cupertino Lines: 33 / hpsal2:comp.sources.wanted / pfarrell@anselm.UUCP (Gladiator Supreme) / 6:12 am Oct 7, 1988 / We are porting a piece of software called edit-one to an vax 8600 running ultrix. In the program itself are several definitions that apparently were in included files in other systems, but do not exist here. Some are as follows, KEY_UP KEY_DOWN Etc Etc KEY_IL KEY_IC KEY_EIC and all sorts of other fun definitions. (I can pretty much figure out what key up, key down etc is) (The IL EIC IC, oh well) KEY_F(c) where c is an integer apparently refering to a function key, and the function returns to an int. If anyone has a clue to what these are, or better yet, can mail me a copy of the include file, it would be appreciated. Pat !dartvax!anselm!pfarrell ---------- These are "#define"d in /usr/include/curses.h on System V machines and their variants. I assume ultrix is BSD-based. The curses package on System V has a method to accept input from "special" keys. For example, many keyboards have keys labelled "Insert Line" (KEY_IL), "Next" (KEY_NEXT), "Delete Char" (KEY_DC), and several others (KEY_EIC stands for "Exit Insert Character"). I don't think there is much you can do except to "#ifdef" around these. Hope this helps, Michael