-2

When using a virtual terminal (TTY) on Linux, there are certain keybindings that are redundant on modern keyboards. For example, Ctrl+J and Enter do the same thing (Linefeed).

I would like keys like Enter to retain their current mapping, freeing up stuff like Ctrl+J for something else.

On Raspbian Lite (basically, Debian), is it possible to map Ctrl+J to something different to Enter?

Carl Smith
  • 3,025
  • 24
  • 36

1 Answers1

0

There are five man pages you should start with when learning about keymaps:

  • See keymaps(5) for defining custom keymap files.
  • See dumpkeys(1) to explore the state of the current keymap.
  • See showkey(1) to detect which keycodes your keyboard emits.
  • See loadkeys(1) to load a different keymap into the kernel.
  • See install-keymap(8) to persistently update the system keymap.

Note: This information relates to the virtual terminals that the kernel provides. Some things are different with X (see XKB).

Carl Smith
  • 3,025
  • 24
  • 36