]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: Add missing header line for SFO flag in 'cls' command
authorTapan Shah <tapandshah@hpe.com>
Thu, 8 Dec 2016 17:21:11 +0000 (01:21 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Fri, 9 Dec 2016 01:32:51 +0000 (09:32 +0800)
Adding a missing header line for 'cls -sfo' command

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Tapan Shah <tapandshah@hpe.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
ShellPkg/Library/UefiShellLevel3CommandsLib/Cls.c
ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.uni

index de79b825db8ef1e2b411928f0a05831dd50238db..7e7d58d16c08e7a599ad351475f9f43e44602d41 100644 (file)
@@ -82,6 +82,7 @@ ShellCommandRunCls (
       } else {\r
         Background = (gST->ConOut->Mode->Attribute >> 4) & 0x7;\r
         Foreground = gST->ConOut->Mode->Attribute & 0x0F;\r
+        ShellPrintHiiEx (-1, -1, NULL, STRING_TOKEN (STR_GEN_SFO_HEADER), gShellLevel3HiiHandle, L"cls");\r
         ShellPrintHiiEx (\r
           -1,\r
           -1,\r
index bbcb752ac06e58afea3fe71539225195769c880f..b027c67335be3664b1fc4da59842c85c8618c65b 100644 (file)
@@ -43,6 +43,7 @@
 #string STR_GEN_DIR_NF            #language en-US "%H%s%N: Directory not found - '%H%s%N'\r\n"\r
 #string STR_GEN_FILE_NF           #language en-US "%H%s%N: File not found - '%H%s%N'\r\n"\r
 #string STR_GEN_IS_DIR            #language en-US "%H%s%N: '%H%s%N' is a directory\r\n"\r
+#string STR_GEN_SFO_HEADER        #language en-US "ShellCommand,"%s"\r\n"\r
 #string STR_NO_SCRIPT             #language en-US "The command '%H%s%N' is not allowed outside of a script\r\n"\r
 \r
 #string STR_TYP_ERROR             #language en-US "%H%s%N: Operation was not successful on '%H%s%N'\r\n"\r