From a530304e1875a48f4e369b4637997f85d8f61adf Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Tue, 11 Nov 2025 23:49:51 +0100 Subject: [PATCH] tb Use ps2kb MBus to handle C-S --- user/tb/interp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/user/tb/interp.c b/user/tb/interp.c index 8c96427..613d033 100644 --- a/user/tb/interp.c +++ b/user/tb/interp.c @@ -255,10 +255,11 @@ bool interp_runstring(char *string, InterpResult **res, bool interactive) { proc_run(app); if (wait) { + uint8_t key = 0; while(proc_pollstate(app) != 4) { if (interactive) { - int32_t key = dev_cmd(&ps2kbdev, DEV_PS2KBDEV_READCH, NULL, 0); - if (key > 0 && (uint8_t)key == C('S')) { + int32_t read = ipc_mbusconsume("ps2kb", &key); + if (read > 0 && key == C('S')) { proc_kill(app); goto cleanup; }