Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!unisoft!seer!bll From: bll@seer.UUCP (Brad Lanam) Newsgroups: comp.unix.questions Subject: How to get a function key in BSD curses Keywords: BSD curses function-key Message-ID: <502@seer.UUCP> Date: 27 Jun 90 02:19:15 GMT Organization: Gateswood Software Inc., San Ramon, CA Lines: 20 Is there some easy way to get a function key using Berkeley curses? I don't have access to the documentation, and the O'Reilly "curses" book doesn't mention anything about the special keys. If there is no easy way, do I a) read the termcap entry, pull out the sequences for the function keys I need, and watch for them (is this an esc [ A...)? or b) figure out what values are returned for the special keys and hard code those values into the program? Please E-mail. Thanx -- Brad -- Until the next disk seek... -- Brad Lanam ...!uunet!{seeker|unisoft}!seer!bll bll@seer.uucp -- Until the next disk seek... -- Brad Lanam ...!uunet!{seeker|unisoft}!seer!bll bll@seer.uucp