bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in xterm definition in terminfo.src


From: Leonard den Ottolander
Subject: bug in xterm definition in terminfo.src
Date: Mon, 4 Nov 2002 01:26:01 +0100

Hi,

 I noticed there is an error in the xterm definition in terminfo.src provided 
with ncurses. It seems keys kb2 (KEY_B2) and ka3 (KEY_A3) are swapped. You can 
test this behaviour by compiling (gcc -Wall -D_GNU_SOURCE -lncurses keys.c -o 
keys) and running the attached test program. Disable numlock and press shift-
keypad-9 and -5. When setting TERM=vt320 instead of TERM=xterm the keys 
translate fine.
 This is a Red Hat Linux 7.3 system with ncurses(-devel)-5.2-26. Since this 
terminfo file is somewhat outdated I downloaded the latest from 
http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.3.tar.gz . (The version provided 
on http://tuxedo.org/~esr/terminfo/termtypes.master.gz is outdated.) The 
quoted parts are the same for both files.

#       Version 10.2.1
#       $Date: 2000/09/24 02:29:16 $
#       terminfo syntax

and

#       Version 10.2.1
#       $Date: 2002/10/05 18:40:53 $
#       terminfo syntax

vt320|vt300|dec vt320 7 bit terminal,
        ka1=\EOw, ka3=\EOy, kb2=\EOu, kbs=\177, kc1=\EOq, kc3=\EOs,

xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System),
        ka1=\EOw, ka3=\EOu, kb2=\EOy, kbeg=\EOE, kbs=^H, kc1=\EOq,
        kc3=\EOs, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,

xterm-8bit|xterm terminal emulator 8-bit controls (X Window System),
        ka1=\217w, ka3=\217u, kb2=\217y, kbeg=\217E, kbs=^H,
        kc1=\217q, kc3=\217s, kcbt=\233Z, kcub1=\217D, kcud1=\217B,

 In my opinion the values for ka3 and kb2 for the xterm-xf86-v32 definition 
should be swapped. I expect the same to be true for xterm-8bit, although this 
is not necessarily so. When setting TERM=xterm-8bit ncurses doesn't translate 
any of these keys so I cannot check this last hypothesis.

Bye,
Leonard.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

   ---- File information -----------
     File:  keys.c.gz
     Date:  4 Nov 2002, 0:45
     Size:  1015 bytes.
     Type:  Unknown

Attachment: keys.c.gz
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]