From 32d3ec7ea8bda6afc8614a100dfdc7421ecf76be Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 3 Nov 2026 12:57:24 -0300 Subject: fs: kbdin and mousein at the root, rio's and devmouse's (windows/rio/xfid.c:515, kernel/devices/mouse/devmouse.c:445): each rune written to kbdin is a key typed at the pane with the keyboard (control runes Ctrl and a letter but Plan 9's keys: \n Enter, \t Tab, \b Backspace, 0x7f Delete, 0x1b Esc, keyboard.h's private-use runes for the arrows, Home, End, Page Up and Down, Insert, F1-F12), a mousein line `m col row buttons` the mouse as it now is in cells (1 left, 2 middle, 4 right, 8 and 16 a wheel notch), what changed released, moved or pressed; each done before the write is answered, so a script's next read sees it with no sleep; the held buttons are core state, which a replica replays; test/fs.py's keys_and_mouse types, finds the word on /screen and right-clicks it, the first e2e case written through the files alone Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/fs-help.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/fs-help.txt') diff --git a/src/fs-help.txt b/src/fs-help.txt index ee63dd0e..b62a13b8 100644 --- a/src/fs-help.txt +++ b/src/fs-help.txt @@ -11,6 +11,8 @@ screen the rendered screen as JSON, frozen from open to close listeners the session's dial addresses sessions the pardes daemon's, as pardes --ps: daemon ; session tty|gui attached|detached ; shell ; orphan focus the serial of the pane with the keyboard (empty on a column tag); write one to give it the keyboard +kbdin write runes: keys typed at the pane with the keyboard, done before the write answers (\x1b Esc, \n Enter) +mousein write `m col row buttons` (1 left, 2 middle, 4 right): the mouse as it now is; m 10 5 4, m 10 5 0 is a right click ctl settings a line; or Newcol, Dump, Restore [f], Exit (refuses once over unsaved panes), Kill [w], size C R commands every builtin: word, arg, root|pane|both (the ctl that takes it), -- what it does recent files opened lately, closed ones too: open|closed -- cgit v1.3