Protermcap Ansi terminal and F11,F12 in CHUI

LarryD

Active Member
Has anyone been able modify protermcap to make the function keys F11 and F12 work as ansi terminal in character mode?

We are using a modified protermcap with vt* terminal types without issue, and I'm not afraid to hack the protermcap file. We have customers using Alphacom as their telnet client, and have a need to utilize the ansi terminal type for these utilizing color 132x43 screens. I've tried various things in protermcap and settings within Alphacom, but cannot get them to recognize F11 or F12 (these are hotkeys for specific functions within the application). I've searched the kbase but cannot seem to find any how-to's for this particular problem.

Can anyone point me in the right direction or provide me with the appropriate entries in protermcap?

Thanks!
 
Test code:
Code:
readkey.
display keylabel( lastkey ) keyfunction( lastkey ) keycode( "F11" )

In my protermcap:
Code:
        :COPY(F11)=\E[W:\
        :PASTE(F12)=\E[X:\

I actually had to fix the protermcap entry (I just never use those keys...) because they were defined wrong for PuTTY. The original said \E[23~

Use "cat -v" at the command line to see what your keys are actually transmitting.
 
Tom, you know this morning where you mentioned you had a "DOH" moment on something you were working on? Well... DOH!

After doing what you said (the cat -v was especially handy and I learned something new)... turns out I had set the protermcap properly to begin with. What I was missing was the infamous "ON key-label key-function." that overrides the protermcap.

All is well now in the land of the Homer.

Thanks!
 
Back
Top