diff options
Diffstat (limited to 'UnixPkg/UnixConsoleDxe/ConsoleOut.c')
-rw-r--r-- | UnixPkg/UnixConsoleDxe/ConsoleOut.c | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/UnixPkg/UnixConsoleDxe/ConsoleOut.c b/UnixPkg/UnixConsoleDxe/ConsoleOut.c index 693cf60d01..93ace4d80b 100644 --- a/UnixPkg/UnixConsoleDxe/ConsoleOut.c +++ b/UnixPkg/UnixConsoleDxe/ConsoleOut.c @@ -26,13 +26,13 @@ Abstract: // Private worker functions.
//
-#if 0 +#if 0
VOID
UnixSimpleTextOutScrollScreen (
IN OUT UNIX_SIMPLE_TEXT_PRIVATE_DATA *Console
);
-#endif +#endif
VOID
UnixSimpleTextOutPutChar (
IN OUT UNIX_SIMPLE_TEXT_PRIVATE_DATA *Console,
@@ -51,7 +51,7 @@ UnixSimpleTextOutSetMode ( IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
IN UINTN ModeNumber
);
- +
//
// Modeule Global for Simple Text Out Mode.
//
@@ -60,12 +60,12 @@ UnixSimpleTextOutSetMode ( UNIX_SIMPLE_TEXT_OUT_MODE mUnixSimpleTextOutSupportedModes[] = {
{ 80, 25 },
-#if 0 +#if 0
{ 80, 50 },
{ 80, 43 },
{ 100, 100 },
{ 100, 999 }
-#endif +#endif
};
EFI_STATUS
@@ -131,7 +131,7 @@ Returns: for (Str = String; *Str != '\0'; Str++) {
switch (*Str) {
-#if 0 +#if 0
case '\n':
if (Private->Position.Y == (Private->MaxScreenSize.Y - 1)) {
UnixSimpleTextOutScrollScreen (Private);
@@ -155,7 +155,7 @@ Returns: }
break;
-#endif +#endif
default:
UnixSimpleTextOutPutChar (Private, *Str);
}
@@ -186,11 +186,11 @@ Returns: --*/
{
- char c = Char; - Console->UnixThunk->Write (1, &c, 1); + char c = Char;
+ Console->UnixThunk->Write (1, &c, 1);
}
-#if 0 +#if 0
VOID
UnixSimpleTextOutScrollScreen (
IN OUT UNIX_SIMPLE_TEXT_PRIVATE_DATA *Console
@@ -212,8 +212,8 @@ Returns: --*/
{
}
-#endif - +#endif
+
EFI_STATUS
EFIAPI
@@ -358,9 +358,9 @@ Returns: Private = UNIX_SIMPLE_TEXT_OUT_PRIVATE_DATA_FROM_THIS (This);
-#if 0 +#if 0
Private->Attribute = (WORD) Attribute;
-#endif +#endif
This->Mode->Attribute = (INT32) Attribute;
return EFI_SUCCESS;
@@ -393,10 +393,10 @@ Returns: Private = UNIX_SIMPLE_TEXT_OUT_PRIVATE_DATA_FROM_THIS (This);
This->SetCursorPosition (This, 0, 0);
- Private->UnixThunk->Write (1, "\e[2J", 4); - + Private->UnixThunk->Write (1, "\e[2J", 4);
-#if 0 +
+#if 0
Private->UnixThunk->FillConsoleOutputCharacter (
Private->NtOutHandle,
' ',
@@ -411,7 +411,7 @@ Returns: Private->Possition,
&ConsoleWindow
);
-#endif +#endif
return EFI_SUCCESS;
}
@@ -441,36 +441,36 @@ Returns: --*/
{
- char buf[12]; + char buf[12];
UNIX_SIMPLE_TEXT_PRIVATE_DATA *Private;
Private = UNIX_SIMPLE_TEXT_OUT_PRIVATE_DATA_FROM_THIS (This);
-#if 0 +#if 0
Private->Position.X = (WORD) Column;
-#endif +#endif
This->Mode->CursorColumn = (INT32) Column;
-#if 0 +#if 0
Private->Position.Y = (WORD) Row;
-#endif +#endif
This->Mode->CursorRow = (INT32) Row;
-#if 0 +#if 0
Private->UnixThunk->SetConsoleCursorPosition (Private->NtOutHandle, Private->Possition);
-#endif -
- buf[0] = '\e'; - buf[1] = '['; - buf[2] = '0' + ((Row / 100) % 10); - buf[3] = '0' + ((Row / 10) % 10); - buf[4] = '0' + ((Row / 1) % 10); - buf[5] = ';'; - buf[6] = '0' + ((Column / 100) % 10); - buf[7] = '0' + ((Column / 10) % 10); - buf[8] = '0' + ((Column / 1) % 10); - buf[9] = 'H'; - Private->UnixThunk->Write (1, buf, 10); - +#endif
+
+ buf[0] = '\e';
+ buf[1] = '[';
+ buf[2] = '0' + ((Row / 100) % 10);
+ buf[3] = '0' + ((Row / 10) % 10);
+ buf[4] = '0' + ((Row / 1) % 10);
+ buf[5] = ';';
+ buf[6] = '0' + ((Column / 100) % 10);
+ buf[7] = '0' + ((Column / 10) % 10);
+ buf[8] = '0' + ((Column / 1) % 10);
+ buf[9] = 'H';
+ Private->UnixThunk->Write (1, buf, 10);
+
return EFI_SUCCESS;
}
@@ -498,19 +498,19 @@ Returns: --*/
{
UNIX_SIMPLE_TEXT_PRIVATE_DATA *Private;
-#if 0 +#if 0
CONSOLE_CURSOR_INFO Info;
-#endif +#endif
Private = UNIX_SIMPLE_TEXT_OUT_PRIVATE_DATA_FROM_THIS (This);
Private->CursorEnable = Enable;
This->Mode->CursorVisible = Enable;
-#if 0 +#if 0
Private->UnixThunk->GetConsoleCursorInfo (Private->NtOutHandle, &Info);
Info.bVisible = Enable;
Private->UnixThunk->SetConsoleCursorInfo (Private->NtOutHandle, &Info);
-#endif +#endif
return EFI_SUCCESS;
}
@@ -539,13 +539,13 @@ Returns: CHAR16 *WindowName;
//WindowName = Private->UnixIo->EnvString;
-#if 0 +#if 0
Private->Attribute = FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_INTENSITY;
if (*WindowName == '?') {
Private->Attribute = BACKGROUND_RED | FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN;
WindowName = L"EFI Emulator Error Console";
}
-#endif +#endif
WindowName = L"EFI Emulator Error Console";
AddUnicodeString (
@@ -576,7 +576,7 @@ Returns: SimpleTextOut->Mode->MaxMode = MAX_SIMPLE_TEXT_OUT_MODE;
SimpleTextOut->Mode->Attribute = 0; //FOREGROUND_RED | FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_INTENSITY;
-#if 0 +#if 0
//
// Open the window an initialize it!
//
@@ -588,7 +588,7 @@ Returns: NULL
);
Private->UnixThunk->SetConsoleTitle (WindowName);
-#endif +#endif
return SimpleTextOut->SetMode (SimpleTextOut, 0);
}
@@ -613,8 +613,8 @@ Returns: --*/
{
-#if 0 +#if 0
Console->UnixThunk->CloseHandle (Console->NtOutHandle);
-#endif +#endif
return EFI_SUCCESS;
}
|