Strovent SystemsSign in
App guide

Use Caps Lock as Ctrl or Esc on a hardware keyboard

Turn Caps Lock into Ctrl or Esc in the system keyboard settings, why the app cannot remap Caps Lock itself, and what Ctrl and Esc do in each session type.

On many keyboards Ctrl is in an awkward corner, and some have no Esc key at all. Turning Caps Lock into Ctrl (or Esc) helps with tmux, vim, Emacs and the Ctrl chords in 3270 and 5250 sessions.

Why the app cannot do it

The app does not receive Caps Lock as a key press. Like Shift, Ctrl and Alt on their own, it is left to the system, so Add mapping cannot record it. Change it in the system settings instead. The app then sees the key you chose.

What Ctrl and Esc then do

VT sessions (SSH, Mosh, Telnet):

  • Ctrl with a letter sends the control character, so Ctrl+B reaches tmux as its prefix and Ctrl+C interrupts a command. Two exceptions: Ctrl+V pastes, and Ctrl+C copies when text is selected.
  • Esc sends the Escape character, for vim and other programs. See What the keyboard sends in a VT session.

3270 and 5250 sessions:

Spotted a mistake? Email [email protected].