Skip to main content

Hello,

Just wondering if anyone else has run across this.

We are running Server Express on Linux.

I can enter numerics from the keypad of my keyboard when in the shell but when I bring up a my COBOL program, numbers are not sent when typing them from the keypad. The numbers at the top of the keyboard work fine. I'm running with the Putty emulator and my TERM type is xterm.

The xterm setting in terminfo is:

infocmp
#       Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm
xterm|vs100|xterm terminal emulator,
        am, km, msgr, xenl,
        cols#80, it#8, lines#25, vt@,
        acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, blink@, bold=\\E[1m,
        civis=\\E[?25l, clear=\\E[H\\E[2J, cnorm=\\E[?25h, cr=^M,
        csr=\\E[%i%p1%d;%p2%dr, cub=\\E[%p1�, cub1=^H,
        cud=\\E[%p1�, cud1=^J, cuf=\\E[%p1�, cuf1=\\E[C,
        cup=\\E[%i%p1%d;%p2%dH, cuu=\\E[%p1�, cuu1=\\E[A,
        cvvis=\\E[?25h, dch=\\E[%p1%dP, dch1=\\E[P, dl=\\E[%p1%dM,
        dl1=\\E[M, ed=\\E[J, el=\\E[K, home=\\E[H, ht=^I, hts=\\EH,
        ich=\\E[%p1%d@, ich1=\\E[@, il=\\E[%p1%dL, il1=\\E[L, ind=^J,
        kbs=^H, kcub1=\\E[D, kcud1=\\E[B, kcuf1=\\E[C, kcuu1=\\E[A,
        kdch1=\\177, kf1=\\E[11~, kf10=\\E[21~, kf11=\\E[23~,
        kf12=\\E[24~, kf2=\\E[12~, kf3=\\E[13~, kf4=\\E[14~,
        kf5=\\E[15~, kf6=\\E[17~, kf7=\\E[18~, kf8=\\E[19~, kf9=\\E[20~,
        khome=\\E[H, kich1=\\E[2~, knp=\\E[6~, kpp=\\E[5~, mc4=\\E[4i,
        mc5=\\E[5i, nel=^J, rc=\\E8, rev=\\E[7m,
        rf=/usr/share/lib/tabset/vt100, ri=\\EM, rmcup=\\E[?7h,
        rmkx=\\E>, rmso=\\E[m, rmul=\\E[m$<2>,
        rs1=\\E>\\E[1;3;4;5;6l\\E[?7h\\E[m\\E[r\\E[2J\\E[H, rs2@,
        s0ds=\\E(B, s1ds=\\E(0, sc=\\E7,
        sgr=\\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\\E           (0%e\\E(B%;,
        sgr0=\\E[m\\E(B, smcup=\\E[?7h\\E[?1l\\E(B\\E=, smkx=\\E=,
        smso=\\E[7m, smul=\\E[4m$<2>, tbc=\\E[3g,

I don't remember this happening to the COBOL on our AIX box.

Is there a setting I'm missing on the Linux side?

Hello,

Just wondering if anyone else has run across this.

We are running Server Express on Linux.

I can enter numerics from the keypad of my keyboard when in the shell but when I bring up a my COBOL program, numbers are not sent when typing them from the keypad. The numbers at the top of the keyboard work fine. I'm running with the Putty emulator and my TERM type is xterm.

The xterm setting in terminfo is:

infocmp
#       Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm
xterm|vs100|xterm terminal emulator,
        am, km, msgr, xenl,
        cols#80, it#8, lines#25, vt@,
        acsc=jjkkllmmnnqqttuuvvwwxx, bel=^G, blink@, bold=\\E[1m,
        civis=\\E[?25l, clear=\\E[H\\E[2J, cnorm=\\E[?25h, cr=^M,
        csr=\\E[%i%p1%d;%p2%dr, cub=\\E[%p1�, cub1=^H,
        cud=\\E[%p1�, cud1=^J, cuf=\\E[%p1�, cuf1=\\E[C,
        cup=\\E[%i%p1%d;%p2%dH, cuu=\\E[%p1�, cuu1=\\E[A,
        cvvis=\\E[?25h, dch=\\E[%p1%dP, dch1=\\E[P, dl=\\E[%p1%dM,
        dl1=\\E[M, ed=\\E[J, el=\\E[K, home=\\E[H, ht=^I, hts=\\EH,
        ich=\\E[%p1%d@, ich1=\\E[@, il=\\E[%p1%dL, il1=\\E[L, ind=^J,
        kbs=^H, kcub1=\\E[D, kcud1=\\E[B, kcuf1=\\E[C, kcuu1=\\E[A,
        kdch1=\\177, kf1=\\E[11~, kf10=\\E[21~, kf11=\\E[23~,
        kf12=\\E[24~, kf2=\\E[12~, kf3=\\E[13~, kf4=\\E[14~,
        kf5=\\E[15~, kf6=\\E[17~, kf7=\\E[18~, kf8=\\E[19~, kf9=\\E[20~,
        khome=\\E[H, kich1=\\E[2~, knp=\\E[6~, kpp=\\E[5~, mc4=\\E[4i,
        mc5=\\E[5i, nel=^J, rc=\\E8, rev=\\E[7m,
        rf=/usr/share/lib/tabset/vt100, ri=\\EM, rmcup=\\E[?7h,
        rmkx=\\E>, rmso=\\E[m, rmul=\\E[m$<2>,
        rs1=\\E>\\E[1;3;4;5;6l\\E[?7h\\E[m\\E[r\\E[2J\\E[H, rs2@,
        s0ds=\\E(B, s1ds=\\E(0, sc=\\E7,
        sgr=\\E[%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;m%?%p9%t\\E           (0%e\\E(B%;,
        sgr0=\\E[m\\E(B, smcup=\\E[?7h\\E[?1l\\E(B\\E=, smkx=\\E=,
        smso=\\E[7m, smul=\\E[4m$<2>, tbc=\\E[3g,

I don't remember this happening to the COBOL on our AIX box.

Is there a setting I'm missing on the Linux side?

Hello mfri123

One thing that can impact whether the number keys in the numeric keypad are transmitted as numbers is whether or not the terminal is set to be in "Application" mode. You don't mention which terminal emulator you're using, but Putty, for example, has a setting to control this. In Putty, if you go in to the configuration settings, and then to Terminal -> Features, you can choose whether "Application" mode is active.  When Application mode is active, the terminal does not transmit numbers for the numeric keypad keys.

Also, was  the environment variable COBTERMINFO set on your AIX system? COBTERMINFO instructs COBOL to use a specified terminfo database. By default, COBOL uses terminal configuration information in $COBDIR/terminfo. While not recommended as a permanent setting, an experiment you might try is to set COBTERMINFO to point to the system terminfo location you referenced, /usr/share/terminfo.