From e2cc0292cb08c71c3610aff52132d176d2c9b6c2 Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Mon, 5 May 2025 14:04:23 +0800 Subject: [PATCH] uefi: Handle break in --console recent Otherwise if you run `framework_tool.efi --console recent -b` and then stop at one of the screens, the app never exits. Signed-off-by: Daniel Schaefer --- framework_lib/src/chromium_ec/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/framework_lib/src/chromium_ec/mod.rs b/framework_lib/src/chromium_ec/mod.rs index 87d45b13..674e5e3c 100644 --- a/framework_lib/src/chromium_ec/mod.rs +++ b/framework_lib/src/chromium_ec/mod.rs @@ -1102,6 +1102,12 @@ impl CrosEc { return Err(err); } }; + + // Need to explicitly handle CTRL-C termination on UEFI Shell + #[cfg(feature = "uefi")] + if shell_get_execution_break_flag() { + return Ok(console); + } } }