Cursor CLI in Terminal can't create a new line with Shift+Enter

Describe the Bug

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

  1. Open Windows Terminal.
  2. wsl --distribution Ubuntu
  3. cursor-agent
  4. Attempt to use Shift+Enter to make a new line in your prompt.
  5. 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)

cursor-agent --version
2025.08.08-f57cb59

Windows Terminal
Version: 1.22.11141.0

OS
Windows 11 24H2

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. We’ll investigate this.

For now you can go into vim mode /vim then press escape + o. it is a very ugly workaround :grimacing: but it works for now

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.

Thanks

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.

Maybe Shift-Enter? Did not try CLI yet.

Im on Mac, I dont have Alt key.
No Shift+Enter does not work either

Sorry, didn’t know you were on Mac. Use ctrl+j instead then.

Where does the bug appear (feature/product)?

Cursor CLI

Describe the Bug

Environment: WSL2

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.

Tried, didn’t work:

{
    "key": "shift+enter",
    "command": "workbench.action.terminal.sendSequence",
    "args": {
        "text": " \\n"
    },
    "when": "terminalFocus"
}

Steps to Reproduce

  1. WSL2
  2. Open Cursor IDE
  3. Open a terminal and cursor cursor-agent
  4. Write some text and try adding a new line using any key combination
  5. Confirm it submits the text instead of adding a new line

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (user setup)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

No - Cursor works, but with this issue

hi @terracota and thank you for your very helpful bug report with video. Appreciate it!

It is not a feature that we currently have but I have let the team know about it.

1 Like