diff options
author | Tapan Shah <tapandshah@hp.com> | 2014-08-29 20:41:14 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-08-29 20:41:14 +0000 |
commit | 227a4b1c489308275bfbb955c4fd2f3f36e7a04d (patch) | |
tree | 4833148dde810c315e92fe4dbd6c4fb8c386f40c | |
parent | 89732f464eafc76057e804718284c2667f04c312 (diff) | |
download | edk2-platforms-227a4b1c489308275bfbb955c4fd2f3f36e7a04d.tar.xz |
Add CTRL+C support for ‘devices’ 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@15998 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c b/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c index f962bf40c0..c596baeb20 100644 --- a/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c +++ b/ShellPkg/Library/UefiShellDriver1CommandsLib/Devices.c @@ -1,7 +1,7 @@ /** @file
Main file for devices 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 - 2014, 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
@@ -250,6 +250,11 @@ ShellCommandRunDevices ( if (Name != NULL) {
FreePool(Name);
}
+ if (ShellGetExecutionBreakFlag ()) {
+ ShellStatus = SHELL_ABORTED;
+ break;
+ }
+
}
if (HandleList != NULL) {
|