aboutsummaryrefslogtreecommitdiffstats
path: root/docs/scripting.md
diff options
context:
space:
mode:
authorsl0p <sl0p@sl0p.foo>2026-08-14 00:04:03 +0200
committersl0p <sl0p@sl0p.foo>2026-08-14 00:04:03 +0200
commit1532581aa3765512b6629aed94f7f529a53f92b5 (patch)
tree9b0c62922c53c3399b461be6f92b5c85cf52c8ea /docs/scripting.md
parentsl0ptty: scrollback — wheel, keyboard, and a clickable indicator (diff)
downloadslosh-1532581aa3765512b6629aed94f7f529a53f92b5.tar.gz
slosh-1532581aa3765512b6629aed94f7f529a53f92b5.tar.xz
slosh-1532581aa3765512b6629aed94f7f529a53f92b5.zip
sl0ptty: select-to-copy, middle-click paste, and toasts
Drag over text, release, and it is on your clipboard — no chord, no menu, the selection is the copy. The clipboard lives on the client's machine, so the copy travels as OSC 52 and therefore works over ssh; the session keeps its own copy as the primary selection, which is what middle click pastes back. Selected cells are inverted rather than recoloured, so a selection reads the same over whatever theme the program inside is using. A program that is tracking the mouse keeps its own clicks (shift is the escape hatch), which is tested rather than assumed. Toasts: transient announcements in the bottom-right that expire on their own, stacked up to three. 'copied 13 chars', 'config reloaded', a pane's OSC 9 notification, or {"cmd":"notify","text":"..."} from an orchestrator — an agent in a pane can now say 'build finished' and have it appear. OSC 52 from a pane reaches the same clipboard. Two real bugs found on the way: - mouse events are hit-tested against what was painted, and nothing had been painted before the first frame, so a click that arrived first was dropped. Both front ends now compose once before accepting input, which is what really happens in a session anyway. - the plain leaf_new never installed the clipboard and notification handlers; only panes built from a layout file had them. Every ordinary pane was silently missing both. The test escaping traps continue to earn their comments: a real newline inside a driver argument terminates the *command* rather than reaching the shell, \a is not a driver escape (\x07 is), and an interactive shell's line editor eats a typed ESC — so a pane driven with escape sequences must not be one. 356 checks green (329 headless + 27 live).
Diffstat (limited to 'docs/scripting.md')
0 files changed, 0 insertions, 0 deletions