🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.terminals
Article #181

Defining Special Function Keys in "terminfo"

#181
From: Mike McCarthy
Date: Tue, 27 Jun 1989 18:31
36 lines
1946 bytes
     I am posting this for one of our Response Center engineers.  If
you wish to respond directly to Kelly, please use the address given
at the end of this posting.  You may also send responses to me, and
I will forward them.

-- Mike McCarthy
   INTERNET: mpm@hpfcmr.hp.com | UUCP: <backbone>!{hplabs, hp-sde}!hpfcla!mpm

-------------- C U T ------------------------- H E R E ---------------

     I need some help in setting up the special function keys (SFK)
for an HP 2394A terminal via the "terminfo" database.  (I want to
define this in a modified "terminfo" entry for the terminal.)  I
think that I should use the "pkey_xmit" capability to do this, but
I don't have an example entry for what the capability definition
would look like.  Before I reinvent the wheel here, I would like an
example to work from.

     A problem I see is that there are at least three variables in
the string to program a function key on the HP 2394A:  SFK number,
SFK label, and the string to transmit.  The "pkey_xmit" capability
takes only two parameters.

     In addition to defining the appropriate capability in the
"terminfo" entry, I also need to know how to enable the keys.  How
should I do that?  I am looking for any examples or ideas that
could help.  That includes how to call a "curses" routine to use
a parameterized capability string like "pkey_xmit".  (I can use
"tputs" but I don't think that will do what I want.)

Kelly "terminfo hurts!" Oden
North American Response Center
Atlanta, GA
UUCP:      hplabs!hpfcla!hpfcse!kgo
INTERNET:  kgo@hpfcse.hp.com
Technical Details
Message-ID: <2500004@hpfcmgw.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpfcdc!hpfcmgw!mpm

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpfcdc!hpfcmgw!mpm
From: mpm@hpfcmgw.HP.COM (Mike McCarthy)
Newsgroups: comp.terminals
Subject: Defining Special Function Keys in "terminfo"
Message-ID: <2500004@hpfcmgw.HP.COM>
Date: 27 Jun 89 18:31:32 GMT
Organization: HP Fort Collins, CO
Lines: 36