When using Cursor CLI inside of Windows Terminal, pressing Shift+Enter does not create a new line. However, it works correctly inside of Warp Terminal, for example.
Steps to Reproduce
Open Windows Terminal.
wsl --distribution Ubuntu
cursor-agent
Attempt to use Shift+Enter to make a new line in your prompt.
It submits the message instead of creating a new line.
Try the steps again, except using Warp Terminal, and it will work correctly.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
With Claude Code, I can use the Option+Enter key to do a new line on the terminal input. It does not work for Cursor CLI. Shift+Enter does not work either.
Can you add this feature? Its important for writing prompts properly.
Try alt+enter. Although the prompt code seems a bit buggy. When it bugs out, one ctrl+c might kind of fix it, but new lines (deleting or adding) always tend to bug out for me.
The CLI isn’t handling new lines when running from the IDE terminal. Whilst on a regular terminal the sequence CTRl+ENTER adds a new line, it doesn’t work on the IDE itself. No key combination seems to work for that purpose.
I also tried setting a custom keybinding (see below) but it just adds the literal \n string. This bug was already reported in a couple of other topics, but so far no response from the team.