2007-06-19 12:12:02 +02:00
|
|
|
/** @file
|
2007-11-22 07:00:39 +01:00
|
|
|
Simple Text Out protocol from the UEFI 2.0 specification.
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
Abstraction of a very simple text based output device like VGA text mode or
|
|
|
|
a serial terminal. The Simple Text Out protocol instance can represent
|
2009-06-04 07:49:29 +02:00
|
|
|
a single hardware device or a virtual device that is an aggregation
|
2007-06-19 12:12:02 +02:00
|
|
|
of multiple physical devices.
|
|
|
|
|
2018-06-27 15:11:33 +02:00
|
|
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
|
|
This program and the accompanying materials are licensed and made available under
|
|
|
|
the terms and conditions of the BSD License that accompanies this distribution.
|
2010-03-12 23:19:12 +01:00
|
|
|
The full text of the license may be found at
|
2018-06-27 15:11:33 +02:00
|
|
|
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.
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __SIMPLE_TEXT_OUT_H__
|
|
|
|
#define __SIMPLE_TEXT_OUT_H__
|
|
|
|
|
2007-06-21 09:16:27 +02:00
|
|
|
#define EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_GUID \
|
2007-06-19 12:12:02 +02:00
|
|
|
{ \
|
|
|
|
0x387477c2, 0x69c7, 0x11d2, {0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
|
|
|
|
}
|
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
|
|
|
/// Protocol GUID defined in EFI1.1.
|
2018-06-27 15:11:33 +02:00
|
|
|
///
|
2007-06-21 09:16:27 +02:00
|
|
|
#define SIMPLE_TEXT_OUTPUT_PROTOCOL EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_GUID
|
|
|
|
|
|
|
|
typedef struct _EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL;
|
2007-06-19 12:12:02 +02:00
|
|
|
|
2008-08-14 06:29:48 +02:00
|
|
|
///
|
|
|
|
/// Backward-compatible with EFI1.1.
|
2018-06-27 15:11:33 +02:00
|
|
|
///
|
2007-06-21 09:16:27 +02:00
|
|
|
typedef EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL SIMPLE_TEXT_OUTPUT_INTERFACE;
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Define's for required EFI Unicode Box Draw characters
|
|
|
|
//
|
|
|
|
#define BOXDRAW_HORIZONTAL 0x2500
|
|
|
|
#define BOXDRAW_VERTICAL 0x2502
|
|
|
|
#define BOXDRAW_DOWN_RIGHT 0x250c
|
|
|
|
#define BOXDRAW_DOWN_LEFT 0x2510
|
|
|
|
#define BOXDRAW_UP_RIGHT 0x2514
|
|
|
|
#define BOXDRAW_UP_LEFT 0x2518
|
|
|
|
#define BOXDRAW_VERTICAL_RIGHT 0x251c
|
|
|
|
#define BOXDRAW_VERTICAL_LEFT 0x2524
|
|
|
|
#define BOXDRAW_DOWN_HORIZONTAL 0x252c
|
|
|
|
#define BOXDRAW_UP_HORIZONTAL 0x2534
|
|
|
|
#define BOXDRAW_VERTICAL_HORIZONTAL 0x253c
|
|
|
|
#define BOXDRAW_DOUBLE_HORIZONTAL 0x2550
|
|
|
|
#define BOXDRAW_DOUBLE_VERTICAL 0x2551
|
|
|
|
#define BOXDRAW_DOWN_RIGHT_DOUBLE 0x2552
|
|
|
|
#define BOXDRAW_DOWN_DOUBLE_RIGHT 0x2553
|
|
|
|
#define BOXDRAW_DOUBLE_DOWN_RIGHT 0x2554
|
|
|
|
#define BOXDRAW_DOWN_LEFT_DOUBLE 0x2555
|
|
|
|
#define BOXDRAW_DOWN_DOUBLE_LEFT 0x2556
|
|
|
|
#define BOXDRAW_DOUBLE_DOWN_LEFT 0x2557
|
|
|
|
#define BOXDRAW_UP_RIGHT_DOUBLE 0x2558
|
|
|
|
#define BOXDRAW_UP_DOUBLE_RIGHT 0x2559
|
|
|
|
#define BOXDRAW_DOUBLE_UP_RIGHT 0x255a
|
|
|
|
#define BOXDRAW_UP_LEFT_DOUBLE 0x255b
|
|
|
|
#define BOXDRAW_UP_DOUBLE_LEFT 0x255c
|
|
|
|
#define BOXDRAW_DOUBLE_UP_LEFT 0x255d
|
|
|
|
#define BOXDRAW_VERTICAL_RIGHT_DOUBLE 0x255e
|
|
|
|
#define BOXDRAW_VERTICAL_DOUBLE_RIGHT 0x255f
|
|
|
|
#define BOXDRAW_DOUBLE_VERTICAL_RIGHT 0x2560
|
|
|
|
#define BOXDRAW_VERTICAL_LEFT_DOUBLE 0x2561
|
|
|
|
#define BOXDRAW_VERTICAL_DOUBLE_LEFT 0x2562
|
|
|
|
#define BOXDRAW_DOUBLE_VERTICAL_LEFT 0x2563
|
|
|
|
#define BOXDRAW_DOWN_HORIZONTAL_DOUBLE 0x2564
|
|
|
|
#define BOXDRAW_DOWN_DOUBLE_HORIZONTAL 0x2565
|
|
|
|
#define BOXDRAW_DOUBLE_DOWN_HORIZONTAL 0x2566
|
|
|
|
#define BOXDRAW_UP_HORIZONTAL_DOUBLE 0x2567
|
|
|
|
#define BOXDRAW_UP_DOUBLE_HORIZONTAL 0x2568
|
|
|
|
#define BOXDRAW_DOUBLE_UP_HORIZONTAL 0x2569
|
|
|
|
#define BOXDRAW_VERTICAL_HORIZONTAL_DOUBLE 0x256a
|
|
|
|
#define BOXDRAW_VERTICAL_DOUBLE_HORIZONTAL 0x256b
|
|
|
|
#define BOXDRAW_DOUBLE_VERTICAL_HORIZONTAL 0x256c
|
|
|
|
|
|
|
|
//
|
|
|
|
// EFI Required Block Elements Code Chart
|
|
|
|
//
|
|
|
|
#define BLOCKELEMENT_FULL_BLOCK 0x2588
|
|
|
|
#define BLOCKELEMENT_LIGHT_SHADE 0x2591
|
|
|
|
|
|
|
|
//
|
|
|
|
// EFI Required Geometric Shapes Code Chart
|
|
|
|
//
|
|
|
|
#define GEOMETRICSHAPE_UP_TRIANGLE 0x25b2
|
|
|
|
#define GEOMETRICSHAPE_RIGHT_TRIANGLE 0x25ba
|
|
|
|
#define GEOMETRICSHAPE_DOWN_TRIANGLE 0x25bc
|
|
|
|
#define GEOMETRICSHAPE_LEFT_TRIANGLE 0x25c4
|
|
|
|
|
|
|
|
//
|
|
|
|
// EFI Required Arrow shapes
|
|
|
|
//
|
|
|
|
#define ARROW_LEFT 0x2190
|
|
|
|
#define ARROW_UP 0x2191
|
|
|
|
#define ARROW_RIGHT 0x2192
|
|
|
|
#define ARROW_DOWN 0x2193
|
|
|
|
|
|
|
|
//
|
|
|
|
// EFI Console Colours
|
|
|
|
//
|
|
|
|
#define EFI_BLACK 0x00
|
|
|
|
#define EFI_BLUE 0x01
|
|
|
|
#define EFI_GREEN 0x02
|
|
|
|
#define EFI_CYAN (EFI_BLUE | EFI_GREEN)
|
|
|
|
#define EFI_RED 0x04
|
|
|
|
#define EFI_MAGENTA (EFI_BLUE | EFI_RED)
|
|
|
|
#define EFI_BROWN (EFI_GREEN | EFI_RED)
|
|
|
|
#define EFI_LIGHTGRAY (EFI_BLUE | EFI_GREEN | EFI_RED)
|
|
|
|
#define EFI_BRIGHT 0x08
|
2015-05-08 09:29:18 +02:00
|
|
|
#define EFI_DARKGRAY (EFI_BLACK | EFI_BRIGHT)
|
2007-06-19 12:12:02 +02:00
|
|
|
#define EFI_LIGHTBLUE (EFI_BLUE | EFI_BRIGHT)
|
|
|
|
#define EFI_LIGHTGREEN (EFI_GREEN | EFI_BRIGHT)
|
|
|
|
#define EFI_LIGHTCYAN (EFI_CYAN | EFI_BRIGHT)
|
|
|
|
#define EFI_LIGHTRED (EFI_RED | EFI_BRIGHT)
|
|
|
|
#define EFI_LIGHTMAGENTA (EFI_MAGENTA | EFI_BRIGHT)
|
|
|
|
#define EFI_YELLOW (EFI_BROWN | EFI_BRIGHT)
|
|
|
|
#define EFI_WHITE (EFI_BLUE | EFI_GREEN | EFI_RED | EFI_BRIGHT)
|
|
|
|
|
2015-05-08 09:29:18 +02:00
|
|
|
//
|
2018-06-27 15:11:33 +02:00
|
|
|
// Macro to accept color values in their raw form to create
|
|
|
|
// a value that represents both a foreground and background
|
2015-05-08 09:29:18 +02:00
|
|
|
// color in a single byte.
|
|
|
|
// For Foreground, and EFI_* value is valid from EFI_BLACK(0x00) to
|
|
|
|
// EFI_WHITE (0x0F).
|
|
|
|
// For Background, only EFI_BLACK, EFI_BLUE, EFI_GREEN, EFI_CYAN,
|
|
|
|
// EFI_RED, EFI_MAGENTA, EFI_BROWN, and EFI_LIGHTGRAY are acceptable
|
|
|
|
//
|
|
|
|
// Do not use EFI_BACKGROUND_xxx values with this macro.
|
|
|
|
//
|
|
|
|
#define EFI_TEXT_ATTR(Foreground,Background) ((Foreground) | ((Background) << 4))
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
#define EFI_BACKGROUND_BLACK 0x00
|
|
|
|
#define EFI_BACKGROUND_BLUE 0x10
|
|
|
|
#define EFI_BACKGROUND_GREEN 0x20
|
|
|
|
#define EFI_BACKGROUND_CYAN (EFI_BACKGROUND_BLUE | EFI_BACKGROUND_GREEN)
|
|
|
|
#define EFI_BACKGROUND_RED 0x40
|
|
|
|
#define EFI_BACKGROUND_MAGENTA (EFI_BACKGROUND_BLUE | EFI_BACKGROUND_RED)
|
|
|
|
#define EFI_BACKGROUND_BROWN (EFI_BACKGROUND_GREEN | EFI_BACKGROUND_RED)
|
|
|
|
#define EFI_BACKGROUND_LIGHTGRAY (EFI_BACKGROUND_BLUE | EFI_BACKGROUND_GREEN | EFI_BACKGROUND_RED)
|
|
|
|
|
|
|
|
//
|
|
|
|
// We currently define attributes from 0 - 7F for color manipulations
|
2018-06-27 15:11:33 +02:00
|
|
|
// To internally handle the local display characteristics for a particular character,
|
2009-06-04 07:49:29 +02:00
|
|
|
// Bit 7 signifies the local glyph representation for a character. If turned on, glyphs will be
|
2007-06-19 12:12:02 +02:00
|
|
|
// pulled from the wide glyph database and will display locally as a wide character (16 X 19 versus 8 X 19)
|
|
|
|
// If bit 7 is off, the narrow glyph database will be used. This does NOT affect information that is sent to
|
2009-06-04 07:49:29 +02:00
|
|
|
// non-local displays, such as serial or LAN consoles.
|
2007-06-19 12:12:02 +02:00
|
|
|
//
|
|
|
|
#define EFI_WIDE_ATTRIBUTE 0x80
|
|
|
|
|
|
|
|
/**
|
|
|
|
Reset the text output device hardware and optionaly run diagnostics
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2016-09-12 10:35:39 +02:00
|
|
|
@param ExtendedVerification Driver may perform more exhaustive verification
|
2007-06-19 12:12:02 +02:00
|
|
|
operation of the device during reset.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The text output device was reset.
|
|
|
|
@retval EFI_DEVICE_ERROR The text output device is not functioning correctly and
|
|
|
|
could not be reset.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_RESET)(
|
2008-07-25 12:37:15 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN BOOLEAN ExtendedVerification
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
2009-09-24 10:56:33 +02:00
|
|
|
Write a string to the output device.
|
2007-06-19 12:12:02 +02:00
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2009-09-24 10:56:33 +02:00
|
|
|
@param String The NULL-terminated string to be displayed on the output
|
2007-06-19 12:12:02 +02:00
|
|
|
device(s). All output devices must also support the Unicode
|
2009-09-24 10:56:33 +02:00
|
|
|
drawing character codes defined in this file.
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
@retval EFI_SUCCESS The string was output to the device.
|
|
|
|
@retval EFI_DEVICE_ERROR The device reported an error while attempting to output
|
|
|
|
the text.
|
|
|
|
@retval EFI_UNSUPPORTED The output device's mode is not currently in a
|
|
|
|
defined text mode.
|
|
|
|
@retval EFI_WARN_UNKNOWN_GLYPH This warning code indicates that some of the
|
2009-09-24 10:56:33 +02:00
|
|
|
characters in the string could not be
|
2007-06-19 12:12:02 +02:00
|
|
|
rendered and were skipped.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_STRING)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN CHAR16 *String
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
2018-06-27 15:11:33 +02:00
|
|
|
Verifies that all characters in a string can be output to the
|
2007-06-19 12:12:02 +02:00
|
|
|
target device.
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2009-09-24 10:56:33 +02:00
|
|
|
@param String The NULL-terminated string to be examined for the output
|
2007-06-19 12:12:02 +02:00
|
|
|
device(s).
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The device(s) are capable of rendering the output string.
|
2009-09-24 10:56:33 +02:00
|
|
|
@retval EFI_UNSUPPORTED Some of the characters in the string cannot be
|
2007-06-19 12:12:02 +02:00
|
|
|
rendered by one or more of the output devices mapped
|
|
|
|
by the EFI handle.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_TEST_STRING)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN CHAR16 *String
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns information for an available text mode that the output device(s)
|
|
|
|
supports.
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2007-06-19 12:12:02 +02:00
|
|
|
@param ModeNumber The mode number to return information on.
|
|
|
|
@param Columns Returns the geometry of the text output device for the
|
|
|
|
requested ModeNumber.
|
|
|
|
@param Rows Returns the geometry of the text output device for the
|
|
|
|
requested ModeNumber.
|
2018-06-27 15:11:33 +02:00
|
|
|
|
2007-06-19 12:12:02 +02:00
|
|
|
@retval EFI_SUCCESS The requested mode information was returned.
|
|
|
|
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
|
|
|
|
@retval EFI_UNSUPPORTED The mode number was not valid.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_QUERY_MODE)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN UINTN ModeNumber,
|
|
|
|
OUT UINTN *Columns,
|
|
|
|
OUT UINTN *Rows
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the output device(s) to a specified mode.
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2007-06-19 12:12:02 +02:00
|
|
|
@param ModeNumber The mode number to set.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The requested text mode was set.
|
|
|
|
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
|
|
|
|
@retval EFI_UNSUPPORTED The mode number was not valid.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_SET_MODE)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN UINTN ModeNumber
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the background and foreground colors for the OutputString () and
|
|
|
|
ClearScreen () functions.
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2007-06-19 12:12:02 +02:00
|
|
|
@param 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.
|
|
|
|
|
2009-06-11 03:46:51 +02:00
|
|
|
@retval EFI_SUCCESS The attribute was set.
|
2009-06-04 07:49:29 +02:00
|
|
|
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
|
2009-06-11 03:46:51 +02:00
|
|
|
@retval EFI_UNSUPPORTED The attribute requested is not defined.
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_SET_ATTRIBUTE)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN UINTN Attribute
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
2018-06-27 15:11:33 +02:00
|
|
|
Clears the output device(s) display to the currently selected background
|
2007-06-19 12:12:02 +02:00
|
|
|
color.
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2018-06-27 15:11:33 +02:00
|
|
|
|
2007-06-19 12:12:02 +02:00
|
|
|
@retval EFI_SUCCESS The operation completed successfully.
|
|
|
|
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
|
|
|
|
@retval EFI_UNSUPPORTED The output device is not in a valid text mode.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_CLEAR_SCREEN)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the current coordinates of the cursor position
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2007-06-19 12:12:02 +02:00
|
|
|
@param Column The position to set the cursor to. Must be greater than or
|
|
|
|
equal to zero and less than the number of columns and rows
|
|
|
|
by QueryMode ().
|
|
|
|
@param Row The position to set the cursor to. Must be greater than or
|
|
|
|
equal to zero and less than the number of columns and rows
|
|
|
|
by QueryMode ().
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The operation completed successfully.
|
|
|
|
@retval EFI_DEVICE_ERROR The device had an error and could not complete the request.
|
|
|
|
@retval EFI_UNSUPPORTED The output device is not in a valid text mode, or the
|
|
|
|
cursor position is invalid for the current mode.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_SET_CURSOR_POSITION)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN UINTN Column,
|
|
|
|
IN UINTN Row
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
Makes the cursor visible or invisible
|
|
|
|
|
2010-03-12 23:19:12 +01:00
|
|
|
@param This The protocol instance pointer.
|
2007-06-19 12:12:02 +02:00
|
|
|
@param Visible If TRUE, the cursor is set to be visible. If FALSE, the cursor is
|
|
|
|
set to be invisible.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The operation completed successfully.
|
|
|
|
@retval EFI_DEVICE_ERROR The device had an error and could not complete the
|
|
|
|
request, or the device does not support changing
|
|
|
|
the cursor mode.
|
|
|
|
@retval EFI_UNSUPPORTED The output device is not in a valid text mode.
|
|
|
|
|
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2008-06-24 09:14:18 +02:00
|
|
|
(EFIAPI *EFI_TEXT_ENABLE_CURSOR)(
|
2007-06-21 09:16:27 +02:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *This,
|
2007-06-19 12:12:02 +02:00
|
|
|
IN BOOLEAN Visible
|
2008-09-04 11:37:28 +02:00
|
|
|
);
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
/**
|
2008-07-25 12:37:15 +02:00
|
|
|
@par Data Structure Description:
|
2007-06-19 12:12:02 +02:00
|
|
|
Mode Structure pointed to by Simple Text Out protocol.
|
|
|
|
**/
|
|
|
|
typedef struct {
|
2009-06-11 03:46:51 +02:00
|
|
|
///
|
|
|
|
/// The number of modes supported by QueryMode () and SetMode ().
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
INT32 MaxMode;
|
|
|
|
|
|
|
|
//
|
|
|
|
// current settings
|
|
|
|
//
|
2009-06-10 21:43:17 +02:00
|
|
|
|
2009-06-11 03:46:51 +02:00
|
|
|
///
|
|
|
|
/// The text mode of the output device(s).
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
INT32 Mode;
|
2009-06-11 03:46:51 +02:00
|
|
|
///
|
2010-03-12 23:19:12 +01:00
|
|
|
/// The current character output attribute.
|
2009-06-11 03:46:51 +02:00
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
INT32 Attribute;
|
2009-06-11 03:46:51 +02:00
|
|
|
///
|
|
|
|
/// The cursor's column.
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
INT32 CursorColumn;
|
2009-06-11 03:46:51 +02:00
|
|
|
///
|
|
|
|
/// The cursor's row.
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
INT32 CursorRow;
|
2009-06-11 03:46:51 +02:00
|
|
|
///
|
|
|
|
/// The cursor is currently visbile or not.
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
BOOLEAN CursorVisible;
|
|
|
|
} EFI_SIMPLE_TEXT_OUTPUT_MODE;
|
|
|
|
|
2008-10-13 04:54:29 +02:00
|
|
|
///
|
2018-06-27 15:11:33 +02:00
|
|
|
/// The SIMPLE_TEXT_OUTPUT protocol is used to control text-based output devices.
|
|
|
|
/// It is the minimum required protocol for any handle supplied as the ConsoleOut
|
|
|
|
/// or StandardError device. In addition, the minimum supported text mode of such
|
2008-10-13 04:54:29 +02:00
|
|
|
/// devices is at least 80 x 25 characters.
|
|
|
|
///
|
2007-06-21 09:16:27 +02:00
|
|
|
struct _EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL {
|
2007-06-19 12:12:02 +02:00
|
|
|
EFI_TEXT_RESET Reset;
|
|
|
|
|
|
|
|
EFI_TEXT_STRING OutputString;
|
|
|
|
EFI_TEXT_TEST_STRING TestString;
|
|
|
|
|
|
|
|
EFI_TEXT_QUERY_MODE QueryMode;
|
|
|
|
EFI_TEXT_SET_MODE SetMode;
|
|
|
|
EFI_TEXT_SET_ATTRIBUTE SetAttribute;
|
|
|
|
|
|
|
|
EFI_TEXT_CLEAR_SCREEN ClearScreen;
|
|
|
|
EFI_TEXT_SET_CURSOR_POSITION SetCursorPosition;
|
|
|
|
EFI_TEXT_ENABLE_CURSOR EnableCursor;
|
|
|
|
|
2008-10-13 04:54:29 +02:00
|
|
|
///
|
|
|
|
/// Pointer to SIMPLE_TEXT_OUTPUT_MODE data.
|
|
|
|
///
|
2007-06-19 12:12:02 +02:00
|
|
|
EFI_SIMPLE_TEXT_OUTPUT_MODE *Mode;
|
|
|
|
};
|
|
|
|
|
2007-06-27 05:38:18 +02:00
|
|
|
extern EFI_GUID gEfiSimpleTextOutProtocolGuid;
|
2007-06-19 12:12:02 +02:00
|
|
|
|
|
|
|
#endif
|