From owner-freebsd-stable@FreeBSD.ORG Wed Aug 26 15:57:44 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 045C7106564A for ; Wed, 26 Aug 2009 15:57:44 +0000 (UTC) (envelope-from ca+envelope@esmtp.org) Received: from zardoc.esmtp.org (adsl-63-195-85-27.dsl.snfc21.pacbell.net [63.195.85.27]) by mx1.freebsd.org (Postfix) with ESMTP id D0F188FC1C for ; Wed, 26 Aug 2009 15:57:43 +0000 (UTC) Received: from zardoc.esmtp.org (localhost. [127.0.0.1]) by zardoc.esmtp.org (MeTA1-1.0.PreAlpha30.0) with ESMTPS (TLS=TLSv1/SSLv3, cipher=AES256-SHA, bits=256, verify=FAIL) id S000000000039770900; Wed, 26 Aug 2009 08:47:42 -0700 Received: (from ca@localhost) by zardoc.esmtp.org (8.13.4/8.12.10.Beta0/Submit) id n7QFlg53025383 for freebsd-stable@freebsd.org; Wed, 26 Aug 2009 08:47:42 -0700 (PDT) Date: Wed, 26 Aug 2009 08:47:42 -0700 From: Claus Assmann To: freebsd-stable@freebsd.org Message-ID: <20090826154741.GA18965@zardoc.esmtp.org> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: kbdcontrol: map Backspace key to '\' fails X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 15:57:44 -0000 On FreeBSD 7.2-STABLE it seems to be impossible to map the Backspace key to '\' and '|'. Here's what I did: Change /usr/share/syscons/keymaps/us.unix.kbd: --- us.unix.kbd- 2009-07-17 16:43:35.000000000 -0700 +++ us.unix.kbd 2009-08-05 08:08:26.000000000 -0700 @@ -17,7 +17,8 @@ 011 '0' ')' nop nop '0' ')' nop nop O 012 '-' '_' us us '-' '_' us us O 013 '=' '+' nop nop '=' '+' nop nop O - 014 del del bs bs del del bs bs O +# 014 del del bs bs del del bs bs O + 014 '\' '|' fs fs '\' '|' fs fs O 015 ht btab nop nop ht btab nop nop O 016 'q' 'Q' dc1 dc1 'q' 'Q' dc1 dc1 C 017 'w' 'W' etb etb 'w' 'W' etb etb C @@ -46,7 +47,8 @@ 040 ''' '"' nop nop ''' '"' nop nop O 041 esc esc esc esc esc esc debug esc O 042 lshift lshift lshift lshift lshift lshift lshift lshift O - 043 '\' '|' fs fs '\' '|' fs fs O +# 043 '\' '|' fs fs '\' '|' fs fs O + 043 bs bs del del del del bs bs O 044 'z' 'Z' sub sub 'z' 'Z' sub sub C 045 'x' 'X' can can 'x' 'X' can can C 046 'c' 'C' etx etx 'c' 'C' etx etx C and run: kbdcontrol -k /dev/console -l /usr/share/syscons/keymaps/us.unix.kbd AFAICT this worked under 7.1 release. If I try a different character than backslash, e.g., 014 '0' '|' fs fs '\' '|' fs fs O it works. Is this a regression or user error?