summaryrefslogtreecommitdiffstats
path: root/scripts/sendkeys.py
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-08-21 19:13:52 +0200
committersalmonik <salmonik@tuta.io>2026-08-21 19:13:52 +0200
commit298528581d1a29032a1224600297316384d4e4f7 (patch)
treef9a7a320567f5cd88cd3f322fcab0be16418be2c /scripts/sendkeys.py
parentdocs: ADR 0006 (executable binaries) + implementation plan + glossary terms (diff)
downloadrs-dos-298528581d1a29032a1224600297316384d4e4f7.tar.gz
rs-dos-298528581d1a29032a1224600297316384d4e4f7.zip
image: single dd-able system.img replaces vvfat+data-disk pair
mksystem.sh stages one FAT32 image: \bzImage + \initramfs.cpio.gz (rsbl paths), \EFI\BOOT\BOOTX64.EFI (kernel direct by default, --chain for rsboot), \etc\motd.txt, empty \bin\cli + \bin\gui, seed files at the root. --gpt wraps it in a partition table for real USB dd targets. Makefile: run/run-gui/debug attach only system.img on ide.0 (vvfat lines deleted); stamp-based 'system' target rebuilds only when the kernel is newer, so runtime writes survive reboots; system-fresh wipes; inspect lists via mtools. build-image.sh/mkdisk.sh removed. test-disk.sh boots system.img with a throwaway OVMF varstore — a stale NvVars makes the firmware skip the \EFI\BOOT fallback. sendkeys.py pacing 50ms->250ms/1.5s: keystroke loss under host load corrupted typed lines (guest-side PS/2 ring overflow). Gate: test-disk PASS (fsck clean, file survives poweroff).
Diffstat (limited to '')
-rwxr-xr-xscripts/sendkeys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sendkeys.py b/scripts/sendkeys.py
index 1c97b33..a67903d 100755
--- a/scripts/sendkeys.py
+++ b/scripts/sendkeys.py
@@ -72,9 +72,9 @@ def type_line(sock, line):
72 else: 72 else:
73 sys.stderr.write("warning: no sendkey mapping for %r\n" % ch) 73 sys.stderr.write("warning: no sendkey mapping for %r\n" % ch)
74 continue 74 continue
75 time.sleep(0.05) 75 time.sleep(0.25)
76 sendkey(sock, "ret") 76 sendkey(sock, "ret")
77 time.sleep(0.7) 77 time.sleep(1.5)
78 78
79 79
80def main(): 80def main():