summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Library/UefiShellDriver1CommandsLib
diff options
context:
space:
mode:
authorTapan Shah <tapandshah@hp.com>2014-08-29 20:38:27 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2014-08-29 20:38:27 +0000
commit54206ae7ef7cf8d10991727cc5a6e459f2ce36f6 (patch)
treea27ef3cab40cd2a692ca6cc6e922b531776fbec9 /ShellPkg/Library/UefiShellDriver1CommandsLib
parent376e759308c07c98b7b26d1291f5f78677280e00 (diff)
downloadedk2-54206ae7ef7cf8d10991727cc5a6e459f2ce36f6.tar.gz
edk2-54206ae7ef7cf8d10991727cc5a6e459f2ce36f6.tar.bz2
edk2-54206ae7ef7cf8d10991727cc5a6e459f2ce36f6.zip
Add CTRL+C support for ‘drivers’ command.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Tapan Shah <tapandshah@hp.com> Reviewed-By: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15996 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Library/UefiShellDriver1CommandsLib')
-rw-r--r--ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c
index 7dff549548..ec3190da09 100644
--- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c
+++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Drivers.c
@@ -1,7 +1,7 @@
/** @file
Main file for Drivers shell Driver1 function.
- (C) Copyright 2012-2014, Hewlett-Packard Development Company, L.P.
+ Copyright (c) 2012-2014, Hewlett-Packard Development Company, L.P.<BR>
Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -305,6 +305,11 @@ ShellCommandRunDrivers (
if (Temp2 != NULL) {
FreePool(Temp2);
}
+
+ if (ShellGetExecutionBreakFlag ()) {
+ ShellStatus = SHELL_ABORTED;
+ break;
+ }
}
}
SHELL_FREE_NON_NULL(Language);