]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/EditTitleBar.c
ShellPkg: update smbiosview for SMBIOS 3.0.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / EditTitleBar.c
index 08d01ab09c617847f78918fe14d99081c9299c03..a0d7cad1e5713adc03c3d3d7a74f8528873c1218 100644 (file)
@@ -1,7 +1,8 @@
 /** @file\r
   Implements titlebar interface functions.\r
 \r
-  Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  (C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR>\r
+  Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved. <BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -107,10 +108,11 @@ MainTitleBarRefresh (
   // backup the old screen attributes\r
   //\r
   Orig.Data             = gST->ConOut->Mode->Attribute;\r
-  New.Colors.Foreground = Orig.Colors.Background;\r
-  New.Colors.Background = Orig.Colors.Foreground;\r
+  New.Data              = 0;\r
+  New.Colors.Foreground = Orig.Colors.Background & 0xF;\r
+  New.Colors.Background = Orig.Colors.Foreground & 0x7;\r
 \r
-  gST->ConOut->SetAttribute (gST->ConOut, New.Data);\r
+  gST->ConOut->SetAttribute (gST->ConOut, New.Data & 0x7F);\r
 \r
   //\r
   // clear the title line\r
@@ -169,6 +171,8 @@ MainTitleBarRefresh (
     case FileTypeAscii:\r
     case FileTypeUnicode:\r
       if (FileType == FileTypeAscii){\r
+        ShellPrintEx (-1,-1, L"     ASCII     ");\r
+      } else {\r
         ShellPrintEx (-1,-1, L"     UNICODE   ");\r
       }\r
       //\r
@@ -185,7 +189,7 @@ MainTitleBarRefresh (
       //\r
       // Print the offset.\r
       //\r
-      ASSERT(FALSE);\r
+      ShellPrintEx (-1,-1, L"Offset %X | Size %X", Offset, Size);\r
     case FileTypeFileBuffer:\r
       break;\r
     default:\r