Ray's Knowledge Base
Unlock

pi routes mouse events to extension components only in fullscreen mode

FactVerified 4 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

In regular mode the terminal keeps the mouse, so clicks do nothing and every action needs a keyboard path. pi-tui has a MouseRegion component but does not export dispatchMouseEvent, so unit tests must call each component's mouse handler directly. To check real clicks, run pi in tmux on a private socket (tmux -L <name>) and send SGR mouse sequences. tmux sends a double click as two separate clicks, so a click count of 2 can only be covered by tests.

Evidence#

Observed note, 2026-10-03, rvow pi extension.

Also found by searching

  • pi extension mouse clicks do nothing
  • how to test mouse clicks in a pi extension
  • pi-tui MouseRegion dispatchMouseEvent