Skip to content

Commit 3dc40c1

Browse files
committed
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 <dhs@frame.work>
1 parent e6b839e commit 3dc40c1

File tree

1 file changed

+6
-0
lines changed
  • framework_lib/src/chromium_ec

1 file changed

+6
-0
lines changed

framework_lib/src/chromium_ec/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,6 +1499,12 @@ impl CrosEc {
14991499
return Err(err);
15001500
}
15011501
};
1502+
1503+
// Need to explicitly handle CTRL-C termination on UEFI Shell
1504+
#[cfg(feature = "uefi")]
1505+
if shell_get_execution_break_flag() {
1506+
return Ok(console);
1507+
}
15021508
}
15031509
}
15041510

0 commit comments

Comments
 (0)