[FEATURE] Mouse click to position cursor in text input area

Resolved 💬 2 comments Opened Apr 17, 2026 by ryanaston Closed Jun 6, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When using Claude Code in a terminal with mouse support enabled (e.g., inside tmux with set -g mouse on, or in cmux), clicking within the text input area has no effect on cursor positioning. Users must rely entirely on keyboard navigation (arrow keys, Ctrl+A/E, etc.) to move within their input text.

Proposed Solution

Support mouse click events in the text input area to move the cursor to the clicked position. When the terminal reports mouse events (e.g., SGR mouse mode), Claude Code should interpret clicks within the input area and update the cursor position accordingly.

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

A user is composing a multi-line prompt and notices a typo near the beginning. Instead of holding the left arrow key or using Ctrl+A and then arrowing forward, they click directly on the typo to place the cursor there, the same way they would in any other terminal application or editor.

Additional Context

Many terminal applications (shells, editors, TUIs) already support mouse-based cursor positioning. This would be a natural UX improvement, especially for users working in mouse-enabled environments like cmux or tmux.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗