TianoCore EDK2 master
|
#include "Shell.h"
Go to the source code of this file.
Data Structures | |
struct | SHELL_EFI_SIMPLE_TEXT_INPUT_PROTOCOL |
struct | SHELL_EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL |
Variables | |
BOOLEAN | AsciiRedirection |
Function definitions for shell simple text in and out on top of file handles.
(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file ConsoleWrappers.c.
EFI_STATUS CloseSimpleTextInOnFile | ( | IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL * | SimpleTextIn | ) |
Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a SHELL_FILE_HANDLE to support redirecting input from a file.
[in] | SimpleTextIn | The pointer to the SimpleTextIn to close. |
EFI_SUCCESS | The object was closed. |
Definition at line 202 of file ConsoleWrappers.c.
EFI_STATUS CloseSimpleTextOutOnFile | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | SimpleTextOut | ) |
Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a SHELL_FILE_HANDLE to support redirecting output from a file.
[in] | SimpleTextOut | The pointer to the SimpleTextOUT to close. |
EFI_SUCCESS | The object was closed. |
Definition at line 506 of file ConsoleWrappers.c.
Event notification function for EFI_SIMPLE_TEXT_INPUT_PROTOCOL.WaitForKey event Signal the event if there is key available
Event | Indicates the event that invoke this function. |
Context | Indicates the calling context. |
Definition at line 38 of file ConsoleWrappers.c.
EFI_SIMPLE_TEXT_INPUT_PROTOCOL * CreateSimpleTextInOnFile | ( | IN SHELL_FILE_HANDLE | FileHandleToUse, |
IN EFI_HANDLE * | HandleLocation | ||
) |
Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a SHELL_FILE_HANDLE to support redirecting input from a file.
[in] | FileHandleToUse | The pointer to the SHELL_FILE_HANDLE to use. |
[in] | HandleLocation | The pointer of a location to copy handle with protocol to. |
NULL | There was insufficient memory available. |
Definition at line 134 of file ConsoleWrappers.c.
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * CreateSimpleTextOutOnFile | ( | IN SHELL_FILE_HANDLE | FileHandleToUse, |
IN EFI_HANDLE * | HandleLocation, | ||
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | OriginalProtocol | ||
) |
Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a SHELL_FILE_HANDLE to support redirecting output from a file.
[in] | FileHandleToUse | The pointer to the SHELL_FILE_HANDLE to use. |
[in] | HandleLocation | The pointer of a location to copy handle with protocol to. |
[in] | OriginalProtocol | The pointer to the original output protocol for pass thru of functions. |
NULL | There was insufficient memory available. |
Definition at line 439 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextInReadKeyStroke | ( | IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL * | This, |
IN OUT EFI_INPUT_KEY * | Key | ||
) |
ReadKeyStroke function for the fake simple text input.
[in] | This | A pointer to the SimpleTextIn structure. |
[in,out] | Key | A pointer to the Key structure to fill. |
EFI_SUCCESS | The read was successful. |
EFI_UNSUPPORTED | The device does not support the ability to read keystroke data. |
Definition at line 76 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextInReset | ( | IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL * | This, |
IN BOOLEAN | ExtendedVerification | ||
) |
Reset function for the fake simple text input.
[in] | This | A pointer to the SimpleTextIn structure. |
[in] | ExtendedVerification | TRUE for extra validation, FALSE otherwise. |
EFI_SUCCESS | The reset was successful. |
Definition at line 56 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutClearScreen | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This | ) |
Clears the output device(s) display to the currently selected background color.
[in] | This | Protocol instance pointer. |
EFI_UNSUPPORTED | The output device is not in a valid text mode. |
Definition at line 348 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutEnableCursor | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN BOOLEAN | Visible | ||
) |
Makes the cursor visible or invisible
[in] | This | Protocol instance pointer. |
[in] | Visible | If TRUE, the cursor is set to be visible. If FALSE, the cursor is set to be invisible. |
EFI_SUCCESS | The operation completed successfully. |
Definition at line 386 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutOutputString | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN CHAR16 * | WString | ||
) |
Write a Unicode string to the output device.
[in] | This | Protocol instance pointer. |
[in] | WString | The NULL-terminated Unicode string to be displayed on the output device(s). All output devices must also support the Unicode drawing defined in this file. |
EFI_SUCCESS | The string was output to the device. |
EFI_DEVICE_ERROR | The device reported an error while attempting to output the text. |
EFI_UNSUPPORTED | The output device's mode is not currently in a defined text mode. |
EFI_WARN_UNKNOWN_GLYPH | This warning code indicates that some of the characters in the Unicode string could not be rendered and were skipped. |
Definition at line 412 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutQueryMode | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN UINTN | ModeNumber, | ||
OUT UINTN * | Columns, | ||
OUT UINTN * | Rows | ||
) |
Returns information for an available text mode that the output device(s) supports.
[in] | This | Protocol instance pointer. |
[in] | ModeNumber | The mode number to return information on. |
[out] | Columns | Upon return, the number of columns in the selected geometry |
[out] | Rows | Upon return, the number of rows in the selected geometry |
EFI_UNSUPPORTED | The mode number was not valid. |
Definition at line 279 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutReset | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN BOOLEAN | ExtendedVerification | ||
) |
Reset the text output device hardware and optionally run diagnostics.
This | pointer to EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL |
ExtendedVerification | Indicates that a more extensive test may be performed |
EFI_SUCCESS | The text output device was reset. |
Definition at line 239 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutSetAttribute | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN UINTN | Attribute | ||
) |
Sets the background and foreground colors for the OutputString () and ClearScreen () functions.
[in] | This | Protocol instance pointer. |
[in] | Attribute | The attribute to set. Bits 0..3 are the foreground color, and bits 4..6 are the background color. All other bits are undefined and must be zero. The valid Attributes are defined in this file. |
EFI_SUCCESS | The attribute was set. |
Definition at line 330 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutSetCursorPosition | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN UINTN | Column, | ||
IN UINTN | Row | ||
) |
Sets the current coordinates of the cursor position
[in] | This | Protocol instance pointer. |
[in] | Column | Column to put the cursor in. Must be between zero and Column returned from QueryMode |
[in] | Row | Row to put the cursor in. Must be between zero and Row returned from QueryMode |
EFI_SUCCESS | The operation completed successfully. |
Definition at line 366 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutSetMode | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN UINTN | ModeNumber | ||
) |
Sets the output device(s) to a specified mode.
[in] | This | Protocol instance pointer. |
[in] | ModeNumber | The mode number to set. |
EFI_UNSUPPORTED | The mode number was not valid. |
Definition at line 309 of file ConsoleWrappers.c.
EFI_STATUS EFIAPI FileBasedSimpleTextOutTestString | ( | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * | This, |
IN CHAR16 * | WString | ||
) |
Verifies that all characters in a Unicode string can be output to the target device.
[in] | This | Protocol instance pointer. |
[in] | WString | The NULL-terminated Unicode string to be examined. |
EFI_SUCCESS | The device(s) are capable of rendering the output string. |
Definition at line 258 of file ConsoleWrappers.c.
|
extern |
Definition at line 15 of file ShellParametersProtocol.c.