Add CTRL+C support for ‘dh’ 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@15995 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Tapan Shah
2014-08-29 20:37:32 +00:00
committed by jcarsey
parent 4bed6d8e5d
commit 376e759308

View File

@ -1,6 +1,7 @@
/** @file /** @file
Main file for Dh shell Driver1 function. Main file for Dh shell Driver1 function.
Copyright (c) 2014, Hewlett-Packard Development Company, L.P.<BR>
Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR> Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -751,6 +752,10 @@ DoDhForHandleList(
DriverInfo, DriverInfo,
TRUE TRUE
); );
if (ShellGetExecutionBreakFlag ()) {
ShellStatus = SHELL_ABORTED;
break;
}
} }
return (ShellStatus); return (ShellStatus);
} }