I've installed Void Linux base image and my backspace key is broken when I am root, it types '^H' instead of erasing. Function keys also type something weird, but at least the brighness-related ones do work.

This only applies to the root shell, it all works perfectly when I login as a normal user. Probably a bashrc issue?

UPD: I typed 'stty erase ^H' in the shell and it now works.

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 2 points 3 months ago (3 children)

It says 'erase = ^?'. How do I change this?

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 3 months ago (2 children)

    What is it when you're root?

    What is it when you're not root?

    What does the command stty erase ^H do?

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 1 point 3 months ago (1 child)

    Is it possible to set this permanently?

  • source
  • parent
  • hideshow 1 child comment