Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!marob!daveh From: daveh@marob.masa.com (Dave Hammond) Newsgroups: comp.unix.xenix Subject: Re: FIORDCHK Message-ID: <25B4CEF3.4C24@marob.masa.com> Date: 17 Jan 90 20:00:51 GMT References: <4587@questar.QUESTAR.MN.ORG> <1027@khijol.UUCP> Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC, New York City Lines: 16 In article <1027@khijol.UUCP> erc@khijol.UUCP writes: >In article <4587@questar.QUESTAR.MN.ORG> jeff@questar.UUCP writes: >> I'm trying to find a portable way to check for function >> key presses. >Have you tried keypad() in conjunction with getch()? If you are using curses, >this is the best portable way to do what you want to do. Keypad() is likely to be portable only amongst Xenix and SysV systems. Most BSD-derived systems do not support keypad(), idlok(), etc. Also, some versions of Xenix include broken keypad() implementations (I recall that certain standard ASCII keys returned null when pressed). -- Dave Hammond daveh@marob.masa.com uunet!masa.com!marob!daveh