Skip to content

Weird behavior of CTRL / in wezterm #556

Answered by wez
kprav33n asked this question in Q&A
Discussion options

You must be logged in to vote

When debugging key sequences there are two levels of thing to look at:

  • You can run wezterm --config debug_key_events=true and it will log its interpretation of the keys that are being pressed. Under X11, we log: key_event KeyEvent { key: Char('/'), modifiers: CTRL, raw_key: None, raw_modifiers: CTRL, raw_code: Some(61), repeat_count: 1, key_is_down: true } which shows that it is being recognized correctly
  • In your shell, you can run od -c and then type the key sequence to see how it is being encoded to send to the application:
    • wezterm produces: ^O
    • xterm and gnome terminal produce ^_

I'll look into resolving this, but for now you can workaround this by defining a key mapping:

local wez…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@wez
Comment options

@kprav33n
Comment options

@wez
Comment options

@bew
Comment options

@kprav33n
Comment options

Answer selected by kprav33n
Comment options

You must be logged in to vote
1 reply
@kprav33n
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants