Where does the bug appear (feature/product)?
Cursor CLI
Describe the Bug
Ctrl+Left and Ctrl+Right (word motion / jump by word) do not work in the Cursor CLI agent prompt input. These keybindings work everywhere else in the terminal. Alt+F/B (Emacs-style word
motion) also do not work.
Konsole sends the correct xterm escape sequences (^[[1;5C for Ctrl+Right, ^[[1;5D for Ctrl+Left), confirmed via cat. The issue is that the CLI prompt input handler does not process
these sequences.
Steps to Reproduce
- Open Cursor CLI (cursor) in any terminal
- Type a multi-word prompt
- Press Ctrl+Left or Ctrl+Right to move by word
- Cursor moves to the beginning of the prompt or the end of the prompt and not to the next/previous word.
Expected Behavior
Cursor should jump between word boundaries, as is standard readline behavior.
Operating System
Linux
Version Information
• Cursor CLI: 3.0.13
• OS: Fedora Linux (kernel 6.19.9)
• Terminal: Konsole (KDE)
• TERM: xterm-256color
• Shell: bash
Does this stop you from using Cursor
No - Cursor works, but with this issue