atom feed3 messages in org.freebsd.freebsd-bugsRe: kern/152162: [syscons] On syscons...
FromSent OnAttachments
Jilles TjoelkerNov 21, 2010 7:39 am 
Bruce EvansNov 28, 2010 9:35 pm 
Jilles TjoelkerDec 3, 2010 5:51 am 
Subject:Re: kern/152162: [syscons] On syscons, pressing delete key results in pressing backspace.
From:Jilles Tjoelker (jil@stack.nl)
Date:Nov 21, 2010 7:39:32 am
List:org.freebsd.freebsd-bugs

The following reply was made to PR kern/152162; it has been noted by GNATS.

From: Jilles Tjoelker <jil@stack.nl> To: bug-@FreeBSD.org, croc@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.