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:
GTH_NO_MOUSEis set and non-empty — mouse OFF, no config file needed.useMousewas set explicitly in config — use it verbatim.TERMis unset, empty ordumb— mouse OFF; nothing useful can be reported.- 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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”boolean