Reviewed README and identified limitation with Shift+Enter.
UnderstandResearched Windows Terminal sendInput feature.
UnderstandCreated workaround using sendInput with Kitty protocol escape sequence.
BuildUpdated README with Windows Terminal configuration.
EditCommitted and pushed the change.
Verifyin windows terminal using git bash or any other shell really, shift + enter is not recognized by our shit.
could any of this help? can use brave search if you want to do more research on how we can configure shift + enter in windows terminal. read @packages/coding-agent/README.md on setups for other terminals
The user is asking about Shift+Enter support in Windows Terminal with Git Bash or other shells. They want me to look at the coding-agent README to see how other terminals are configured, and potentially research how to configure Shift+Enter in Windows Terminal.
Let me start by reading the README.md file.
The README shows that Windows Terminal is explicitly documented as not supporting the Kitty keyboard protocol:
Windows Terminal: Does not support the Kitty keyboard protocol. Shift+Enter cannot be distinguished from Enter. Use Ctrl+Enter for multi-line input instead. All other keybindings work correctly.
So the current workaround is to use Ctrl+Enter instead of Shift+Enter on Windows Terminal.
The user is asking if there's a way to configure Windows Terminal to support Shift+Enter. Let me search for more information using Brave Search to see if there are any workarounds or configuration options.
The README already documents this limitation:
Windows Terminal: Does not support the Kitty keyboard protocol. Shift+Enter cannot be distinguished from Enter. Use Ctrl+Enter for multi-line input instead. All other keybindings work correctly.
Let me search for potential workarounds:
>~/.pi/agent/skills/pi-skills/brave-search/search.js "windows terminal shift+enter keybinding custom escape sequence sendInput" --content 2>/dev/null | head -200This is helpful. Windows Terminal supports sendInput action that can send arbitrary ANSI escape sequences. Let me search specifically for how to configure Shift+Enter in Windows Terminal to send a custom escape sequence.
The Kitty keyboard protocol sends \x1b[13;2u for Shift+Enter. VS Code's config in the README shows exactly this:
{ "key": "shift+enter", "command": "workbench.action.terminal.sendSequence", "args": { "text": "\u001b[13;2u" }, "when": "terminalFocus"}So in Windows Terminal, we could potentially do:
{ "command": { "action": "sendInput", "input": "\u001b[13;2u" }, "keys": "shift+enter"}Let me verify this is the right approach.
This is promising. Windows Terminal supports sendInput with custom escape sequences. The Kitty protocol for Shift+Enter is \x1b[13;2u (which the VS Code config in our README already shows as \u001b[13;2u).
Let me search for confirmation this works:
>~/.pi/agent/skills/pi-skills/brave-search/search.js "windows terminal sendInput shift+enter keybinding settings.json" --content 2>/dev/null | head -200This confirms Windows Terminal supports sendInput with custom escape sequences. The solution is to add a keybinding in Windows Terminal settings.json that sends the Kitty protocol escape sequence for Shift+Enter.
The Kitty keyboard protocol for Shift+Enter is:
\x1b[13;2u which in Windows Terminal JSON format is \u001b[13;2uThe user should add this to their Windows Terminal settings.json actions array:
{ "command": { "action": "sendInput", "input": "\u001b[13;2u" }, "keys": "shift+enter"}This should work! We should update the README with this information.
This can be fixed. Windows Terminal supports sendInput to send custom escape sequences. The Kitty protocol for Shift+Enter is \x1b[13;2u.
Solution for Windows Terminal users:
Add to Windows Terminal settings.json (open with Ctrl+Shift+, or Settings → Open JSON file):
{ "actions": [ { "command": { "action": "sendInput", "input": "\u001b[13;2u" }, "keys": "shift+enter" } ]}This sends the Kitty keyboard protocol escape sequence that pi expects. Should work with Git Bash, PowerShell, or any shell in Windows Terminal.
Want me to update the README to replace the "use Ctrl+Enter" workaround with this actual fix?
can you add that to the README.md?
The user wants me to update the README.md to add the Windows Terminal configuration for Shift+Enter. Let me read the relevant section first to make sure I have the exact text to edit.
I can see the Windows Terminal section. Let me edit it to add the sendInput configuration.
Done. Let me run the check to make sure everything is still valid.
>cd /Users/badlogic/workspaces/pi-mono && npm run check 2>&1Everything checks out. The README has been updated with the Windows Terminal configuration for Shift+Enter.
Done. Updated the Windows Terminal section with the sendInput configuration that sends the Kitty protocol escape sequence for Shift+Enter.
cool, commit and push
The user wants me to commit and push the changes. I need to commit only the specific file I modified.
>cd /Users/badlogic/workspaces/pi-mono && git add packages/coding-agent/README.md && git commit -m "docs(coding-agent): add Windows Terminal Shift+Enter config" && git pushThe commit and push were successful. The README now includes the Windows Terminal configuration for Shift+Enter.
Done. Committed and pushed f3710693.
{ "key": "shift+enter", "command": "workbench.action.terminal.sendSequence", "args": { "text": "\u001b[13;2u" }, "when": "terminalFocus"}{ "command": { "action": "sendInput", "input": "\u001b[13;2u" }, "keys": "shift+enter"}{ "command": { "action": "sendInput", "input": "\u001b[13;2u" }, "keys": "shift+enter"}{ "actions": [ { "command": { "action": "sendInput", "input": "\u001b[13;2u" }, "keys": "shift+enter" } ]}