()
| 303 | * detect which kind of terminal we're in, hence the knob. Called lazily |
| 304 | * from initAndLogWheelAccel so globalSettings.env has loaded. */ |
| 305 | export function readScrollSpeedBase(): number { |
| 306 | const raw = process.env.CLAUDE_CODE_SCROLL_SPEED; |
| 307 | if (!raw) return 1; |
| 308 | const n = parseFloat(raw); |
| 309 | return Number.isNaN(n) || n <= 0 ? 1 : Math.min(n, 20); |
| 310 | } |
| 311 | |
| 312 | /** Initial wheel accel state. xtermJs=true selects the decay curve. |
| 313 | * base is the native-path baseline rows/event (default 1). */ |
no outgoing calls
no test coverage detected