From 3dc40c19303d951b86a0e4eb1e8ac9e6a47921b7 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 87badf52..8af4cff3 100644 --- a/framework_lib/src/chromium_ec/mod.rs +++ b/framework_lib/src/chromium_ec/mod.rs @@ -1499,6 +1499,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); + } } }