]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Fix the bug that handling Ctrl-C improperly
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 28 Nov 2017 09:06:32 +0000 (17:06 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 29 Nov 2017 01:07:26 +0000 (09:07 +0800)
Current implementation resets the CTRL-C event early when printing
the shell prompt, when user types "<CTRL-C>ls<ENTER>", "ls" command
is terminated immediately when starts.
It's not an expected behavior from users' perspective.
Correct way is to reset the CTRL-C event just before running the
command, which is a bit later than current point.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>

No differences found