-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Open
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on Windows
Description
Bug
When Claude Code sets up the Shift+Enter keybinding in Alacritty's alacritty.toml, it writes:
[[keyboard.bindings]]
key = "Return"
mods = "Shift"
chars = "\x1b\r"\x is not a valid TOML escape sequence (TOML spec), which causes a parse error at the chars line and prevents Alacritty from loading the config entirely.
Expected behavior
The installer should use the TOML-compatible Unicode escape \u001b:
chars = "\u001b\r"Reproduction
- Have an existing
alacritty.tomlconfig - Install Claude Code and add it to PATH
- Alacritty fails to load with a parse error on the
charsline
Environment
- OS: Windows 11 Pro (25H2)
- Alacritty: 0.16.1
- Config path:
%APPDATA%\alacritty\alacritty.toml
Notes
- The setup correctly creates a
.bakbackup before modifying the file - Reinstalling/updating Claude Code re-applies the broken escape, overwriting manual fixes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on Windows