Skip to content

[UX] Enable mouse support (cursor positioning, scrolling) with config toggle #4064

@SHL0MS

Description

@SHL0MS

Summary

Mouse support is explicitly disabled in the prompt_toolkit Application:

cli.py:1755:

mouse_support=False,

This means users cannot:

  • Click to position the cursor in the input area
  • Select text with the mouse
  • Scroll with the mouse wheel (within prompt_toolkit)

Suggested fix

  1. Flip to mouse_support=True as the default
  2. Add a tui.mouse_support config toggle as an escape hatch for terminals where mouse capture causes issues (tmux, screen, some SSH setups)
mouse_support=self.config.get("tui", {}).get("mouse_support", True),

Risk

Low. Some terminal multiplexers (tmux, screen) may behave oddly with mouse capture enabled. The config toggle provides an escape hatch. Most modern terminals handle this fine.

Impact

  • Severity: High — basic expected interaction pattern
  • Effort: Tiny — one boolean flip + optional config key

Ref

UX audit item #10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/featureNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions