benilla-re systems structs docs

s_selectionState

global · console

Address
0xc4ec3c · 4 bytes, up to 0xc4ec3f
Type
uint32_t
Meaning
Holds the selection state: 0 none, 1 dragging, 2 fixed
Confidence
verified, proof one
Finding
console/screen#mouse

Finding: Mouse in console: screen

A click in the panel's lowest 0.75 · font size starts a resize drag (0xc4ec38 = 1), and the move handler then sets the height to 1 − y, no lower than the font size. A click elsewhere in the panel selects the line under the cursor: its text is copied to 0xc4eb00, the selection flag 0xc4ec3c is 1, and the highlight band is one font size high at the line. Dragging sets the span's horizontal end; the button up fixes it (0xc4ec3c = 2). Clicks above the panel pass, and the move and up handlers always return 1.

The derivation is in the doc.