Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!cs.utexas.edu!uunet!opusys!rlkd From: rlkd@opusys.UUCP (R.L.K.Dattatri) Newsgroups: comp.windows.x Subject: X bugs Keywords: X keyboard bug (2) Message-ID: <388@opusys.UUCP> Date: 10 Jul 89 23:54:23 GMT Organization: Opus Systems, Cupertino, CA Lines: 38 X Window System Bug Report VERSION R3 CLIENT MACHINE and OPERATING SYSTEM Opus Systems Personal Mainframe 8000 running Opus5 3.1 (Motorola 88000 running System V) DISPLAY N/A WINDOW MANAGER none AREA Xlib SYNOPSIS lib/X/XKeyBind.c XLookupString() handling of DEL. DESCRIPTION Control-DEL gets converted to '0xlf'. In general, when a control key is depressed, all ASCII codes from '@' to DEL, inclusive, are AND'ed with 0x1f. DEL is itself a control character, and should not be treated so. For exapmle, the standard PC keyboard generates DEL with control-BS. X then converts the result to 0x1f. REPEAT BY Try typing control-DEL at od. SAMPLE FIX Change the test from "c <= '\\177'" to "c < '\\177'".