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

Inconsistent Keystroke Output for Ctrl + Shift + C in Zellij Compared to Terminal (Alacritty) #3934

Open
ffact opened this issue Jan 13, 2025 · 0 comments

Comments

@ffact
Copy link

ffact commented Jan 13, 2025

Description:
When pressing Ctrl + Shift + C in Zellij, the terminal multiplexer sends the keystroke sequence ^[OQ (as observed using showkey -a). However, when the same key combination is pressed in a standalone terminal (Alacritty), the sequence sent is ^[[Q .

Steps to Reproduce:

  1. Add the bind in alacritty's config: `bindings = [{ key = "C",        mods = "Control|Shift",    chars = "\u001b[Q" }] `
    
  2. Open Zellij and a standalone terminal (e.g., Alacritty).
    
  3. In both environments, run showkey -a to monitor keystrokes.
    
  4. Press Ctrl + Shift + C in both Zellij and Alacritty.
    
  5. Observe the output in showkey -a.
    

Expected Behavior:
The keystroke sequence for Ctrl + Shift + C should be consistent across Zellij and the standalone terminal (e.g., ^[[Q in both cases).

Actual Behavior:
In Zellij: ^[OQ is sent (as shown by showkey -a).
In Alacritty: ^[[Q is sent (as shown by showkey -a).

Environment:
Terminal Emulator: Alacritty
Multiplexer: Zellij
Operating System: Archlinux
Zellij Version: zellij 0.41.2
Alacritty Version: alacritty 0.15.0-dev (9e9e43d2)

PS: I'm sorry i used an llm to file this ticket with few edits. 😪
PPS: checked with tmux it's working as expected
PPPS: other key combinations like Ctrl + Shift + X or Ctrl + Shift + V work fine

scrn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant