Documentation
¶
Overview ¶
Command clicker clicks or drags a cell of a pane through conch's protocol, for driving a TUI under test by hand:
go run ./internal/tools/clicker $CONCH_SOCKET p1 109 39 # click go run ./internal/tools/clicker $CONCH_SOCKET p1 10 3 60 0 # drag
The end-to-end plan needs clicks as well as keys — the version cell in the status bar, a row in a menu — and there is no other way to send one: `conch send` types text, and a raw mouse escape sequence is encoded as text rather than passed through. With a second pair of coordinates it presses at the first, moves to the second and lets go there, which is what the rows for dragging a tab, a split or a scrollbar need: those are three events, and a press and a release alone do not make a drag. Coordinates are 0-based cells of the pane, as the protocol takes them.