vt(4) keymaps - what is the symbol for '^?' ?

cracauer@

Developer
I use `stty erase ^?` for backspace on my machines, but without X11 vt is sending ^H.

I can't figure out what symbol to put into the *.kbd file for ^?

Here is what the key has right now
Code:
# scan                       cntrl          alt    alt   cntrl lock
# code  base   shift  cntrl  shift  alt    shift  cntrl  shift state
# ------------------------------------------------------------------
[...]
  014   bs     bs     del    del    bs     bs     del    del     O

Any ideas?
 
*.kbd is tables that maps characters to scan code with modifiers.
And the mappings depends on keyboard types (for me, using Japanese keymap jp.kbd).

In my case (jp.kbd), the scan code containing '?' is

Code:
#                                                         alt
# scan                       cntrl          alt    alt   cntrl lock
# code  base   shift  cntrl  shift  alt    shift  cntrl  shift state
# ------------------------------------------------------------------
      (snip)
  053   '/'    '?'    nop    nop    '/'    '?'    nop    nop     O
      (snip)

This means, when scan code 053 with shift comes from keyboard controller (atkbdc or ukbd), '?' is generated as input character. nop means nothing to do as usual.

So if you want to map backspace for '^?' key, you need to find the line that has '?' at the 2nd column (base) and replace 4th column (cntrl) with bs in *.kbd you're using.
 
Back
Top