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 --- docs/typ/scripting.typ | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/typ/scripting.typ') diff --git a/docs/typ/scripting.typ b/docs/typ/scripting.typ index d90f68ac..1116063d 100644 --- a/docs/typ/scripting.typ +++ b/docs/typ/scripting.typ @@ -9,8 +9,9 @@ files is an extension: ``` $ ls $m -README col commands ctl exec focus index layout listeners log -look os pager pane recent screen sessions status tag tagexec +README col commands ctl exec focus index kbdin layout listeners +log look mousein os pager pane recent screen sessions status tag +tagexec $ cat $m/index 1 term 0 /home/me/src 1 2 text 0 /home/me/src/+New 1 -- cgit v1.3