For reference, IBM Xenix 1.0 ships with the termcap definition below for its "ansi" terminal, which it uses for its local console. Note that this entry does not define any function keys, the keyboard driver simply ignores them. (It also does not understand extended keyboards.)
Code:
li|ansi|Ansi standard crt:\
:al=\E[L:am:bs:cd=\E[J:ce=\E[K:cl=\E[2J\E[H:cm=\E[%i%d;%dH:co#80:\
:dc=\E[P:dl=\E[M:dn=\E[B:ei=:ho=\E[H:ic=\E[@:im=:li#25:\
:nd=\E[C:ms:pt:so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:up=\E[A:\
:kb=^h:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:eo:\
:GS=\E[12m:GE=\E[10m:GV=\63:GH=D:\
:G1=?:G2=Z:G3=@:G4=Y:\
:GU=A:GD=B:GC=E:GL=C:GR=\64:RT=^J:
The vt100/vt132 definitions provided with this version of Xenix only describe F1 to F4 (as expected), and more advanced DEC terminals (such as vt220) are missing.
I've also checked all definitions containing an F6 key (adm31, h19/i19, hp2621, dm3045, vi200, t1061, owl, sb1, some adds, some televideo), and none of them define them in a way compatible with common terminal emulators. At least on my reference system, trial-and-error is guaranteed to fail. You must write your own definitions.
The "handy dandy utility program" is attached here. Should work on any System III, also works on current Linux.