Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix does not use Kitty Keyboard Protocol through WSL on Windows 10 Wezterm #11760

Open
Sarund9 opened this issue Sep 23, 2024 · 1 comment
Open
Labels
C-bug Category: This is a bug

Comments

@Sarund9
Copy link

Sarund9 commented Sep 23, 2024

Summary

Helix does not receive Enhanced Keyboard support from Wezterm on windows while on WSL.

The Windows version (EXE) of Helix works on Wezterm when:

  • The Wezterm config allow_win32_input_mode is Enabled
  • Not running through WSL

Helix on Windows also works when running through Windows Terminal

Running the windows executable through WSL does not work, presumably because WSL discards win32 inputs before reaching Helix.
Neither the WSL or Native windows version of WSL is receiving Enhanced Kitty Keyboard Inputs.

Some questions:

  1. How can I verify that the current shell, is capable of receiving extended keyboard input ?
  2. How can I run Helix to verify that it's actually requesting the extended protocols ?

Notes:

  • I have also installed Helix with brew and it does not work either.

Reproduction Steps

Run Wezterm on Windows with the config options:

local wezterm = require("wezterm")

local config = wezterm.config_builder()

config.enable_kitty_keyboard = true
config.allow_win32_input_mode = false
config.enable_csi_u_key_encoding = false

 -- Making sure Wezterm does not intercept SHIFT+Backspace
config.keys = {
   {
        key = 'Backspace',
        mods = 'SHIFT',
        action = wezterm.action.DisableDefaultAssignment,
    }
}

Log into WSL (debian) and run Helix.

Helix Config:

[keys.normal]
S-backspace = 'command_pallete'

The Keybind does not work.

Helix log

Log is empty

Platform

Windows 10 - Debian WSL

Terminal Emulator

Wezterm 20240203.110809.0

Installation Method

Releases Page

Helix Version

helix 24.7 (079f544)

@Sarund9 Sarund9 added the C-bug Category: This is a bug label Sep 23, 2024
@the-mikedavis
Copy link
Member

You can run Helix with hx -vv to enable debug logging. Then you should see a line like this if Helix can detect that the kitty keyboard protocol is available:

2024-09-23T18:04:16.024 helix_tui::backend::crossterm [DEBUG] The keyboard enhancement protocol is supported in this terminal (checked in 3.670335ms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants