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?
Claus Assmann <freebsd+stable@esmtp.org> wrote: > 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: > [...] The diff looks good and should work fine. > and run: > kbdcontrol -k /dev/console -l /usr/share/syscons/keymaps/us.unix.kbd That -k options doesn't make sense at all. Actually I'm surprised that it doesn't give you an error message. Please use this command: kbdcontrol -l us.unix.kbd < /dev/ttyv0 Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch?ftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n- chen, HRB 125758, Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd PI: int f[9814],b,c=9814,g,i;long a=1e4,d,e,h; main(){for(;b=c,c-=14;i=printf("%04d",e+d/a),e=d%a) while(g=--b*2)d=h*b+a*(i?f[b]:a/5),h=d/--g,f[b]=d%g;}