13BOOLEAN StatusBarNeedRefresh;
14BOOLEAN StatusStringChanged;
32 StatusBarNeedRefresh =
TRUE;
33 StatusStringChanged =
FALSE;
52 SHELL_FREE_NON_NULL (StatusString);
56 UINT32 Foreground : 4;
57 UINT32 Background : 3;
80 IN BOOLEAN EditorFirst,
91 if (!StatusStringChanged && StatusBarNeedRefresh) {
98 if (!StatusBarNeedRefresh && !StatusStringChanged) {
107 New.Colors.Foreground = Orig.Colors.Background & 0xF;
108 New.Colors.Background = Orig.Colors.Foreground & 0x7;
121 if ((FileRow != (
UINTN)(-1)) && (FileCol != (
UINTN)(-1))) {
124 (INT32)(LastRow) - 1,
133 (INT32)(LastRow) - 1,
143 ShellPrintEx ((INT32)(LastCol) - 21, (INT32)(LastRow) - 1, L
"|%s| Help: Ctrl-E", L
"INS");
145 ShellPrintEx ((INT32)(LastCol) - 21, (INT32)(LastRow) - 1, L
"|%s| Help: Ctrl-E", L
"OVR");
158 StatusBarNeedRefresh =
FALSE;
159 StatusStringChanged =
FALSE;
177 StatusStringChanged =
TRUE;
182 SHELL_FREE_NON_NULL (StatusString);
184 if (StatusString ==
NULL) {
185 return EFI_OUT_OF_RESOURCES;
201 return (StatusString);
212 StatusBarNeedRefresh =
TRUE;
225 return (StatusBarNeedRefresh);
VOID StatusBarSetRefresh(VOID)
EFI_STATUS StatusBarRefresh(IN BOOLEAN EditorFirst, IN UINTN LastRow, IN UINTN LastCol, IN UINTN FileRow, IN UINTN FileCol, IN BOOLEAN InsertMode)
EFI_STATUS StatusBarSetStatusString(IN CHAR16 *Str)
CONST CHAR16 * StatusBarGetString(VOID)
BOOLEAN StatusBarGetRefresh(VOID)
EFI_STATUS StatusBarInit(VOID)
VOID StatusBarCleanup(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