From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 21 15:40:11 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8CB0106564A for ; Sun, 21 Nov 2010 15:40:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D782E8FC0A for ; Sun, 21 Nov 2010 15:40:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oALFeBIh006869 for ; Sun, 21 Nov 2010 15:40:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oALFeBkA006865; Sun, 21 Nov 2010 15:40:11 GMT (envelope-from gnats) Date: Sun, 21 Nov 2010 15:40:11 GMT Message-Id: <201011211540.oALFeBkA006865@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jilles Tjoelker Cc: Subject: Re: kern/152162: [syscons] On syscons, pressing delete key results in pressing backspace. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 15:40:12 -0000 The following reply was made to PR kern/152162; it has been noted by GNATS. From: Jilles Tjoelker To: bug-followup@FreeBSD.org, crockabiscuit@yahoo.com Cc: Subject: Re: kern/152162: [syscons] On syscons, pressing delete key results in pressing backspace. Date: Sun, 21 Nov 2010 16:32:13 +0100 With the new "libteken" terminal emulator code in 9-current, syscons is now much like xterm. It appears that Backspace is still ^H, but Delete is now ^[[3~ instead of ^?. A while ago, I changed 9-current libedit (and therefore programs like sh and ftp) to recognize ^[[3~. I encourage you to ask tcsh upstream to fix this as well (either by hardcoding ^[[3~ somewhere or by using the appropriate termcap/terminfo field). Making the Backspace key send ^? may be slightly dangerous as it is rather annoying if Backspace does Delete (more annoying than Delete doing Backspace, IMHO). On the other hand, vte-based terminal programs such as gnome-terminal and xfce4's Terminal send ^? by default and it seems to work fine. -- Jilles Tjoelker