28 SHELL_FREE_NON_NULL (Title);
39 return EFI_OUT_OF_RESOURCES;
53 SHELL_FREE_NON_NULL (Title);
58 UINT32 Foreground : 4;
59 UINT32 Background : 4;
83 IN CONST CHAR16 *FileName OPTIONAL,
84 IN CONST EDIT_FILE_TYPE FileType,
95 CONST CHAR16 *FileNameTmp;
103 New.Colors.Foreground = Orig.Colors.Background & 0xF;
104 New.Colors.Background = Orig.Colors.Foreground & 0x7;
125 if (FileName ==
NULL) {
133 FileNameTmp = FileName;
134 for (TempInteger =
StrLen (FileNameTmp) - 1; TempInteger >= 0; TempInteger--) {
135 if (FileNameTmp[TempInteger] == L
'\\') {
140 FileNameTmp = FileNameTmp + TempInteger + 1;
145 if (
StrLen (FileNameTmp) <= 20) {
147 for (TempInteger =
StrLen (FileNameTmp); TempInteger < 20; TempInteger++) {
151 for (TempInteger = 0; TempInteger < 17; TempInteger++) {
166 case FileTypeUnicode:
167 if (FileType == FileTypeAscii) {
183 case FileTypeDiskBuffer:
184 case FileTypeMemBuffer:
188 ShellPrintEx (-1, -1, L
"Offset %X | Size %X", Offset, Size);
189 case FileTypeFileBuffer:
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
EFI_STATUS MainTitleBarInit(CONST CHAR16 *Prompt)
EFI_STATUS MainTitleBarRefresh(IN CONST CHAR16 *FileName OPTIONAL, IN CONST EDIT_FILE_TYPE FileType, IN CONST BOOLEAN ReadOnly, IN CONST BOOLEAN Modified, IN CONST UINTN LastCol, IN CONST UINTN LastRow, IN CONST UINTN Offset, IN CONST UINTN Size)
VOID MainTitleBarCleanup(VOID)
EFI_STATUS EFIAPI ShellPrintEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR16 *Format,...)
CHAR16 *EFIAPI CatSPrint(IN CHAR16 *String OPTIONAL, IN CONST CHAR16 *FormatString,...)
VOID EditorClearLine(IN UINTN Row, IN UINTN LastCol, IN UINTN LastRow)
EFI_SIMPLE_TEXT_OUTPUT_MODE * Mode
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * ConOut