Subject: xterm(1) breaks delete key in 2.0
To: None <netbsd-bugs@NetBSD.org>
From: Dieter <netbsd@sopwith.solgatos.com>
List: netbsd-bugs
Date: 02/16/2005 09:47:13
The xterm(1) program that comes with release 2.0 breaks the delete key.
Xterm is supposed to emulate the DEC VT100 by default.  It can optionally
emulate other terminals such as the DEC VT220, Tektronix 4014, etc.

The vast majority of terminals, including the VT100, generate the ASCII
delete character (0x7f) when the "delete" key is pressed.  The VT220
generates ^[[3~ instead.

NetBSD's xterm program correctly generated the ASCII delete character (0x7f)
up to and including the 1.6.2 release.  The 2.0 release's xterm incorrectly
switched to the VT220 behavior ( ^[[3~ ), which of course breaks programs
right and left.

The easiest way to fix/workaround this problem is probably just to add

	XTerm.vt100.deleteIsDEL: true

to the file

	/usr/X11R6/lib/X11/app-defaults/XTerm