Debian bug report logs - #797
/etc/termcap console keydefs for function keys

Package: (base); Reported by: Bill Mitchell <mitchell@mdd.comm.mot.com>; 198 days old.
Bug reassigned from package `whichever one installs /etc/termcap' to `(base)'. Request was from imurdock@debian.org (Ian Murdock) to debian-bugs-request@pixar.com. Full text available.

Message received at debian-bugs:


From mdd.comm.mot.com!mitchell Sun Apr 16 14:51:09 1995
Return-Path: <mitchell@mdd.comm.mot.com>
Received: from pixar.com by mongo.pixar.com with smtp
	(Smail3.1.28.1 #15) id m0s0cDk-0003cdC; Sun, 16 Apr 95 14:51 PDT
Received: from motgate.mot.com by pixar.com with SMTP id AA19725
  (5.65c/IDA-1.4.4 for <debian-bugs@pixar.com>); Sun, 16 Apr 1995 14:51:04 -0700
Received: from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate.mot.com (8.6.11/8.6.10/MOT-3.6) with ESMTP id QAA22397 for <debian-bugs@pixar.com>; Sun, 16 Apr 1995 16:51:04 -0500
Received: from mdd.comm.mot.com (mdisea.mdd.comm.mot.com [138.242.64.201]) by pobox.mot.com (8.6.11/8.6.10/MOT-3.6) with SMTP id QAA18811 for <debian-bugs@pixar.com>; Sun, 16 Apr 1995 16:51:03 -0500
Received: from bb29c.mdd.comm.mot.com by mdd.comm.mot.com (4.1/SMI-4.1)
	id AA00765; Sun, 16 Apr 95 14:51:02 PDT
Received: by bb29c.mdd.comm.mot.com (4.1/SMI-4.1)
	id AA22701; Sun, 16 Apr 95 14:51:00 PDT
Date: Sun, 16 Apr 1995 14:50:59 -0700 (PDT)
From: Bill Mitchell <mitchell@mdd.comm.mot.com>
X-Sender: mitchell@bb29c
To: debian-bugs@pixar.com
Subject: /etc/termcap console keydefs for function keys
Message-Id: <Pine.SUN.3.91.950416142601.22686B-100000@bb29c>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


PACKAGE:  whichever one installs /etc/termcap
VERSION: 0.93R5

I was working with a program which expects F10 key input
today, and having problems.  I'm not a termcap jock, and
may be off base here, but here's what I glean from examining
the console entry in /etc/termcap, looking at the terminfo(5)
man page, and using "od -c" to look at what is seen from some
function-key keypresses:

1.  The /etc/termcap console entry maps "k0" to what
    my F10 key produces.

2.  The terminfo(5) manpage says that F10 is "k;", not "k0".

3.  The program I'm working with maps F10 to "k;"

4.  The terminfo(5) man page mentions function keys, ranging
    from F0 thru F63.

5.  My keyboard contains F1 thru F12.  Most (all?) PC-AT
    keyboards I've seen contain at least F1 thru F10.

6.  I think I've seen mention in some docs about Shift-F1
    being F11, Shift-F2 F12, etc.  That seems to take us
    From F1 through F20 with most (all?) standard PC-AT
    keyboards.

7.  The program I was working with worked OK if I added a
    "k;" definition which duplicated the existing "k0"
    definition to the /etc/termcap console entry.

That suggest to me the following:

1.  The /etc/termcap console entry might need to have a
    "k;" definition added.  Some programs (at least the
    one I was working with) seem to expect it.

2.  The /etc/termcap console entry might need to have
    further key definitions added for F11 thru at least
    F20.  (The terminfo(5) man page seems to say that
    "k1" is the F1 key, "k;" is the F10 key, "F1" (not
    "F10: -- perhaps "F1" vs. "k1" here denotes a shifted
    F1 key?), and so forth.

mitchell@mdd.comm.mot.com (Bill Mitchell)



Acknowledgement sent to Bill Mitchell <mitchell@mdd.comm.mot.com>:
New bug report received and forwarded. Full text available.
Report forwarded to debian-devel@pixar.com:
Bug#797; Package whichever one installs /etc/termcap. Full text available.
Ian Jackson / iwj10@thor.cam.ac.uk, with the debian-bugs tracking mechanism
This page last modified 07:43:01 GMT Wed 01 Nov