From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7ff8cab7a19e4f98 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-07-14 20:53:59 PST Newsgroups: comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!ux1.cso.uiuc.edu!newsrelay.iastate.edu!news.iastate.edu!john From: john@iastate.edu (John Hascall) Subject: Re: Curses problem Message-ID: Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames, IA References: Date: Thu, 15 Jul 1993 03:42:56 GMT david_s@iastate.edu (David P Sly) writes: } I am trying to compile a curses program on DEC3100 (Ultrix 4.2), }using cursesX. The screen comes up fine. But the trouble starts when I }try to use the funtion keys. I just return the key code of the key }pressed and when 'q' is pressed I quit. It works for all alphanumeric keys. }But on pressing, say F1 (KEY_F(1)) I don't get the value 411 ( form the }header file for curses). } } Can somebody shed light on what I am doing wrong ( or what could be }wrong). I believe that `curses F1' is what is labeled `PF1' on the DEC keyboard -- I don't think curses knows the escape sequences for the F# keys across the top of the keyboard (you'll have to decode them yourself). John -- John Hascall ``An ill-chosen word is the fool's messenger.'' Systems Software Engineer Project Vincent Iowa State University Computation Center + Ames, IA 50011 + 515/294-9551