ITEM: L9935L

TRYING TO MAKE AN INED TERMINAL DEFINITION



Question:

TRYING TO MAKE AN INED TERMINAL DEFINITION
CAN'T FIND ANY DOCUMENTATION ON HOW TO DEFINE ONE.

Response:

D: the customer is trying to use the ined editor on a terminal that he has
   defined on his system.  Everything seems to work fine except for the 
   cursor positioning of the editor.  The customer would like someone to 
   call him back that knows about how ibm got the ined editor to work
   with the ibm3151.  He is not using an ibm3151, but   

When issuing the cursor position parameter for this terminal, the
order of the column and row are reversed from the order they are
used for most terminals like the ibm3151 and the DEC vt100.

The mapping of the INeD functions requires a two part scenario.
First, determine the key you want to use.  
Next, determine the sequence that this key generates.
This is easily done with :
stty -echo; cat -v | od -ac; stty echo
Hit the key of interest a couple times.
Hold the control key down and hit d (ctrl-d) untill you get a prompt.
The keys will print out.  
Then change the /usr/lib/INed/def.trm file for the key of interest

For example on my ibm3151 Modcl 310, there is no 'send' key, which
is defined for 'execute' in INed.
I want to use the right Ctrl key.

stty -echo; cat -v | od -ac; stty echo
        hit Ctrl key twice
        hold left control key down and hit the d key
        output shows:
00000000   \^   [   !   8   lf   \^   [   !   8  lf
           \^   [   !   8   \\n   \^   [   !   8  \\n

This is really escape ! 8 lf,

Now edit the def.trm file
cd /usr/lib/INed
cp def.trm def.trm_old
cp terms.bin terms.bin_old

e def.trm
Move the cursor to the ibm3151 line.
Hit tab to move to the Input line - for input key translations
Hit the ZOOM-IN key (Shift F9)
Move the cursor inside the edit area - tab will do
Page Down untill you find the 'execute' key definition 
        Page Down for a 3151 is Shift-F12.
On line with EXECUTE    \^[8\^m,  I chaged it to \^[!8\^m
Saved the file (Ctrl-a s)
Exited the editor (Ctrl-a d)
compiled the sequence with 'tdigest def.trm terms.bin
Now 'EXECUTE' key works (Right CTRL key)


Response:

Real problem is the cursor position
cm attribute for termcap equivalent to the cup attribute for terminfo.

INed - He is trying to get a DataGeneral terminal working.
The problem is that the form of the commands are p2, p1 while
all the other terminals we have definitions for are p1, p2.
p1 and p2 stand for parameter one and parameter two.

When he puts his terminfo he gets 'oops' printed to the screen.
        \^P%p2%c%p1%c%
He needs to get his termcap definition.  INed Uses termcap definitions
        \^P%r%%.%.
The %r attribute says to reverse the order of the parameters,
and the %. says to put the parameter in the string without changes.

This is documented in the Orielly book on Page 38, 39 (termcap -cm)



Support Line: TRYING TO MAKE AN INED TERMINAL DEFINITION ITEM: L9935L
Dated: September 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:40
Comments or suggestions? Contact us