Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.windows.x Subject: Re: xterm puzzles Message-ID: <4238@auspex.auspex.com> Date: 2 Nov 90 19:35:24 GMT References: <1990Nov1.105811.12295@dde.dk> Organization: Auspex Systems, Santa Clara Lines: 28 >1) Why does the keypad divide key (KP_Divide) display "\". Because the "kypd_num" string in "input.c" in the "xterm" source has a backslash where it should perhaps have a slash. Assuming there's no good reason for this: *** input.c.dist Sun Dec 10 17:44:50 1989 --- input.c Fri Nov 2 11:33:07 1990 *************** *** 46,52 **** #include "ptyx.h" static XComposeStatus compose_status = {NULL, 0}; ! static char *kypd_num = " XXXXXXXX\tXXX\rXXXxxxxXXXXXXXXXXXXXXXXXXXXX*+,-.\\0123456789XXX="; static char *kypd_apl = " ABCDEFGHIJKLMNOPQRSTUVWXYZ??????abcdefghijklmnopqrstuvwxyzXXX"; static char *cur = "DACB"; --- 46,52 ---- #include "ptyx.h" static XComposeStatus compose_status = {NULL, 0}; ! static char *kypd_num = " XXXXXXXX\tXXX\rXXXxxxxXXXXXXXXXXXXXXXXXXXXX*+,-./0123456789XXX="; static char *kypd_apl = " ABCDEFGHIJKLMNOPQRSTUVWXYZ??????abcdefghijklmnopqrstuvwxyzXXX"; static char *cur = "DACB"; (Speaking of good reasons or the lack of same, is there any good reason why "kypd_num", "kypd_apl", and "cur" are pointers to "char", rather than arrays of "char"?)