[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference csc32::cobol2

Title:Micro Focus Cobol/2
Notice:See note 10 for instructions on BUG reports
Moderator:CSC32::E_VAETH
Created:Sat Jan 19 1991
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:577
Total number of notes:1843

568.0. "Function keys && vt220-w" by NNTPD::"mirandaj@mail.dec.com" (Joao Miranda) Thu Apr 24 1997 11:47

Hi
I have a problem in a clent whith the terminfo files vt220-w && vt220 and
their
MFCobol application.
I can't get the function keys to work when using the "termconverted" vt220-w.
I've tried the program of 57.1 of this conference and it works fine when I use

vt220, but when I use vt220-w I get "That keystroke has no meaning here" (for
example,when I press F9). On the other end, when I use tbox whith vt220, 
pressing a function key like F10 (List Directory) returns the prompt "Exit 
from Micro Focus Toolbox ? Y/N" (it's like pressing the ESC key) ; but when 
I use tbox whith vt220-w, the function keys work well (although the display is

a bit weird).
I've converted the vt220 && vt220-w files with "termconv".
I used the infocmp command to "decompile" this terminfo files, and used the
"od -c" command to check the escape sequences and they are the same:
(example : F9)
HOST# od -c
^[[20~
0000000  033   [   2   0   ~  \n
0000006
HOST# cat vt220-w.src
#       Reconstructed via infocmp from file: /usr/share/lib/terminfo/v/vt220-w
vt200-w|vt200-w-am|vt220-w|vt220-w-am|vt200-wj|vt220-wj|VT200 Series; 132
col.,
        am, eo, km, mir, msgr, xenl, xon,
        cols#132, it#8, lines#24, vt#3,
        batt1=f1, batt2=f1md, bel=^G, blink=\E[5m, bold=\E[1m,
        box1=lqkxjmwuvtn, box2=lqkxjmwuvtn, civis=\E[?25l,
        clear=\E[H\E[J, cnorm=\E[?25h, cr=\r,
        csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=\b,
        cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
        cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
        cvvis=\E[?25h, dch1=\E[P, dl1=\E[M, ech=\E[%p1%dX,
        ed=\E[J, el=\E[K, font0=\E(B, font1=\E(0, home=\E[H,
        ht=\t, hts=\EH$<2>, il1=\E[L, ind=\ED,
        is2=\E[1;24r\E[24;1H, kbs=\b, kcub1=\EOD, kcud1=\EOB,
        kcuf1=\EOC, kcuu1=\EOA, kdo=\E[29~, kf1=\EOP,
        kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~,
        kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~,
        kf18=\E[32~, kf19=\E[33~, kf2=\EOQ, kf20=\E[34~,
        kf3=\EOR, kf4=\EOS, kf6=\E[17~, kf7=\E[18~,
        kf8=\E[19~, kf9=\E[20~, khlp=\E[28~, kich1=\E[2~,
        knl=\r, knp=\E[6~, kpp=\E[5~, ktab=\t, nel=\n, rc=\E8,
        rev=\E[7m, rf=/usr/share/lib/tabset/vt100-w, ri=\EM,
        rmacs=\E(B$<4>, rmdc=, rmir=\E[4l, rmkx=\E[?1l,
        rmso=\E[27m, rmul=\E[24m,
        rs2=\E>\E[?1l\E[?3h\E[?4l\E[?5l\E[?7h\E[?8h, sc=\E7,
       
sgr=\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\,
        sgr0=\E[m\E(B, smacs=\E(0$<2>, smdc=, smir=\E[4h,
        smkx=\E[?1h, smso=\E[7m, smul=\E[4m, tbc=\E[3g$<2>,

The key mapping in "keybcf" is :

User Function Key List
----------------------
 
Function key   0              Undefined
Function key   1              Undefined
Function key   2              Undefined
Function key   3              Undefined
Function key   4              Undefined
Function key   5              Undefined
Function key   6              1B 5B 31 37 7E
Function key   7              1B 5B 31 38 7E
Function key   8              1B 5B 31 39 7E
Function key   9              1B 5B 32 30 7E
Function key  10              1B 5B 32 31 7E
Function key  11              1B 5B 32 33 7E
Function key  12              1B 5B 32 34 7E
Function key  13              FF 01 15
Function key  14              FF 01 16
Function key  15              FF 01 17
......

Does anybody knows what I'm doing wrong ?

Note: this is working in other platforms.

Additional info.

CPU TYPE:  DEC 2100 
Digital UNIX V3.2C  (Rev. 148)

setld -i :
...
MFCBASE322      installed       Micro Focus COBOL 3.2(u2) for Digital UNIX
MFCDOC322       installed       Micro Focus Product Release Notes and On-line
In
MFCMAN322       installed       Micro Focus COBOL 3.2(u2) Reference Pages
MFTBASE322      installed       Micro Focus Toolbox 3.2(u2) for Digital UNIX
MFTDOC322       installed       Micro Focus Toolbox On-line Information
MFTMAN322       installed       Micro Focus Toolbox 3.2(u2) Reference Pages
....


Thanks for any reply
[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines