Skip to content

resolveUseMouse

resolveUseMouse(input): boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/mouse.ts:54

Resolve mouse reporting from the four-rung precedence ladder, highest wins:

  1. GTH_NO_MOUSE is set and non-empty — mouse OFF, no config file needed.
  2. useMouse was set explicitly in config — use it verbatim.
  3. TERM is unset, empty or dumb — mouse OFF; nothing useful can be reported.
  4. Otherwise — ON when BOTH stdout and stdin are terminals. A piped, redirected or captured run never enables tracking, so its bytes are identical to a run with mouse compiled out.

UseMouseInput

boolean