OpenCore
1.0.4
OpenCore Bootloader
|
#include "OcConsoleLibInternal.h"
#include <Protocol/ConsoleControl.h>
#include <Protocol/GraphicsOutput.h>
#include <Protocol/OcForceResolution.h>
#include <Protocol/SimpleTextOut.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BaseOverflowLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcBootManagementLib.h>
#include <Library/OcConsoleLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
Go to the source code of this file.
Functions | |
EFI_STATUS | OcSetConsoleResolutionForProtocol (IN EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput, IN UINT32 Width OPTIONAL, IN UINT32 Height OPTIONAL, IN UINT32 Bpp OPTIONAL) |
EFI_STATUS | OcSetConsoleModeForProtocol (IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *TextOut, IN UINT32 Width, IN UINT32 Height) |
EFI_STATUS | OcSetConsoleResolution (IN UINT32 Width OPTIONAL, IN UINT32 Height OPTIONAL, IN UINT32 Bpp OPTIONAL, IN BOOLEAN Force) |
EFI_STATUS | OcSetConsoleMode (IN UINT32 Width, IN UINT32 Height) |
VOID | OcSetupConsole (IN EFI_CONSOLE_CONTROL_SCREEN_MODE InitialMode, IN OC_CONSOLE_RENDERER Renderer, IN OC_STORAGE_CONTEXT *Storage OPTIONAL, IN CONST CHAR8 *Font OPTIONAL, IN BOOLEAN IgnoreTextOutput, IN BOOLEAN SanitiseClearScreen, IN BOOLEAN ClearScreenOnModeSwitch, IN BOOLEAN ReplaceTabWithSpace, IN UINT32 Width, IN UINT32 Height) |
Copyright (C) 2019, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file OcConsoleLib.c.
EFI_STATUS OcSetConsoleMode | ( | IN UINT32 | Width, |
IN UINT32 | Height ) |
Set console mode.
[in] | Width | Resolution width or 0 for Max. |
[in] | Height | Resolution height or 0 for Max. |
EFI_SUCCESS | on success. |
Definition at line 380 of file OcConsoleLib.c.
EFI_STATUS OcSetConsoleModeForProtocol | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | TextOut, |
IN UINT32 | Width, | ||
IN UINT32 | Height ) |
Definition at line 173 of file OcConsoleLib.c.
EFI_STATUS OcSetConsoleResolution | ( | IN UINT32 Width | OPTIONAL, |
IN UINT32 Height | OPTIONAL, | ||
IN UINT32 Bpp | OPTIONAL, | ||
IN BOOLEAN | Force ) |
Set screen resolution on console handle.
[in] | Width | Resolution width or 0 for Max. |
[in] | Height | Resolution height or 0 for Max. |
[in] | Bpp | Resolution bpp or 0 for automatic. |
[in] | Force | Force the specified resolution using the OC_FORCE_RESOLUTION protocol. |
EFI_SUCCESS | on success. |
Definition at line 289 of file OcConsoleLib.c.
EFI_STATUS OcSetConsoleResolutionForProtocol | ( | IN EFI_GRAPHICS_OUTPUT_PROTOCOL * | GraphicsOutput, |
IN UINT32 Width | OPTIONAL, | ||
IN UINT32 Height | OPTIONAL, | ||
IN UINT32 Bpp | OPTIONAL ) |
Definition at line 34 of file OcConsoleLib.c.
VOID OcSetupConsole | ( | IN EFI_CONSOLE_CONTROL_SCREEN_MODE | InitialMode, |
IN OC_CONSOLE_RENDERER | Renderer, | ||
IN OC_STORAGE_CONTEXT *Storage | OPTIONAL, | ||
IN CONST CHAR8 *Font | OPTIONAL, | ||
IN BOOLEAN | IgnoreTextOutput, | ||
IN BOOLEAN | SanitiseClearScreen, | ||
IN BOOLEAN | ClearScreenOnModeSwitch, | ||
IN BOOLEAN | ReplaceTabWithSpace, | ||
IN UINT32 | Width, | ||
IN UINT32 | Height ) |
Configure console control protocol with given options.
[in] | InitialMode | Initial mode to use, or set max. value to use existing mode. |
[in] | Renderer | Renderer to use. |
[in] | Storage | Storage context - only required if Font parameter is used. |
[in] | Font | Font file to load. Use builtin font if NULL or empty string. |
[in] | IgnoreTextOutput | Skip console output in text mode. |
[in] | SanitiseClearScreen | Workaround ClearScreen breaking resolution. |
[in] | ClearScreenOnModeSwitch | Clear graphic screen when switching to text mode. |
[in] | ReplaceTabWithSpace | Replace invisible tab characters with spaces in OutputString. |
[in] | Width | Width to set - applies to builtin renderer only. |
[in] | Height | Height to set - applies to builtin renderer only. |
Definition at line 389 of file OcConsoleLib.c.