How to get a function key in BSD curses

Brad Lanam bll at seer.UUCP
Wed Jun 27 12:19:15 AEST 1990


    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 at seer.uucp

-- 
Until the next disk seek...
   -- Brad Lanam    ...!uunet!{seeker|unisoft}!seer!bll    bll at seer.uucp



More information about the Comp.unix.questions mailing list