Re: [Info-ingres] termcap Issues Under Linux



At 12:22 PM -0500 11/29/2005, Lucky Leavell wrote:
>On Tue, 29 Nov 2005, Betty & Karl Schendel wrote:
>
>>
>> You could use the same mapping file and a termcap entry something like:
>>
>> putty:\
>> k0=\E[11~:k1=\E[12~: ... :tc=konsole
>> (or tc=consolel if line drawing works the same).
>>
>> The trick would be to override the kX entries for the F1-F4 keys.
>> I expect that these are k0..k3 but I don't have it in front of me.
>> You can also override any shifted function key entries, if there are
>> any such in the konsole termcap entry.
>>
>Two more questions:
>
> 1. When the same capability is defined twice, say k0 in putty and
> konsole, which one is effective, teh first one encountered or
> the last?

The first one encountered.

>
> 2. What are the capabilities for shifted function keys (sF1, etc)
> called in the ingres termcap?
>

It doesn't work like that. :-)

In the termcap, you define what selected function keys send, as
capabilities k0, k1, ... k9, kA ... kZ, KA, ... KD which I think is
the last one. YOU pick which function keys you're going to define,
and YOU pick the order. The keys you define in termcap become keys
pf1, pf2, .... up to pf40. (Don't forget to say :ky: and :kn#NN: in
the termcap as well, to say how many keys NN you defined. I don't know
why it can't just count 'em, but it can't.)

Note that the key definitions in termcap are just character sequences.
I can define a "function key" for any multi-key sequence, e.g. control-A
escape A B C if I want to; indeed, this trick is sometimes useful in a
context where the actual terminal or keyboard has a limited number of
distinct sequences that it sends.

Now, in the map file, you map pf keys or control keys to FRS functions:
frskeys, menuitems, and FRS form keys (stuff like nextfield).
You can use any control key, or any "function key" that you mapped in
termcap. You reference the former by saying e.g. controlA, and the latter
using pf1, pf2, and so on. The label in parens (^A, Sh-F1, whatever) is
strictly something that shows up on the screen or in Help Keys.
It's up to YOU to put the right label on the pfN usages in the map file;
you're the one who knows how you put the keys into termcap in the first
place.


By the way, I sent the konsole map and termcap to your reply-to address
earlier today, did you get them?

As to your other question: I've had relatively limited exposure to Solaris-10
on x86 (it was an Opteron box), but what I've seen is all good. From a
developer's perspective, Solaris is infinitely easier to work on than
anything else, thanks to truss, dtrace, pstack, dbx, etc.
Even for a user, I would think that just having dtrace would make
Solaris worth the learning curve.

Karl


.



Relevant Pages

  • Re: Where to find SCO Termlite?
    ... I don't think really knows that much about fP or SCO UNIX ... overlays only the keys that are defined in this. ... The only thing you have to really know to make any Unix system run ... And finding that you could go in an modify the termcap on the SCO ...
    (comp.unix.sco.misc)
  • Re: dbaccess - return key does not work?
    ... If in fact the arrow keys do not work, ... Sounds like you have TERMCAP set correctly, ... dbaccess - return key does not work? ...
    (comp.databases.informix)
  • RE: dbaccess - return key does not work?
    ... Alas, termcap pre-dates the standard xterm, it may not exist in the standard ... A better answer would be to copy them to your very own termcap file ... dbaccess - return key does not work? ... If in fact the arrow keys do not work, ...
    (comp.databases.informix)
  • Re: how to quit
    ... "If you are using termcap, and your terminal supports function keys, ... Terminfo, some versions of termcap, and some versions of curses ... Arrow keys and function keys are not ASCII ...
    (comp.lang.c)
  • Re: Hot Fix 5 - WOW!
    ... I don't remember the numeric keypad on my first PCs (a Corona/Cordata ... I don't think WordStar supported the cursor keys on the ... I don't trust my memory to know what the PC function key standards were but ... My memory may be playing tricks on me, but I'm pretty sure that when I ...
    (borland.public.delphi.non-technical)