XenevaOS
Loading...
Searching...
No Matches
xnout.h
Go to the documentation of this file.
1
30#ifndef __XNOUT_H__
31#define __XNOUT_H__
32
33#ifdef _MSC_VER
34 #include <Uefi.h>
35#elif __GNUC__
36 #include <efi/efi.h>
37#endif
38
39/*
40 * XEClearScreen -- clears the screen
41 */
42extern void XEClearScreen();
43
44/*
45 * XESetCursor -- Set the cursor on or off
46 * @param on -- boolean value
47 */
48extern EFI_STATUS XESetCursor(const unsigned char on);
49
50/*
51 * XEGetCurrentCursorPos -- returns the current
52 * cursor pos to given variable
53 * @param Col -- Pointer to where Column value should be stored
54 * @param Row -- Pointer to where Row value should be stored
55 */
56extern void XEGetCurrentCursorPos(int* Col, int* Row);
57
58/*
59 * XESetCurrentCursorPos -- Set the current cursor pos
60 * @param Col -- Column value
61 * @param Row -- Row value
62 */
63extern EFI_STATUS XESetCurrentCursorPos(const int Col, const int Row);
64
65/*
66 * XESetTextAttribute -- Set text and background color
67 * @param Back -- Background color
68 * @param Fore -- Foreground color
69 */
70extern EFI_STATUS XESetTextAttribute(const int Back, const int Fore);
71
72
73/*
74 * XEPrintf -- print function that will
75 * show output to the screen
76 * @param fmt -- format to print
77 */
78extern int XEPrintf(const char16_t* fmt, ...);
79
80/*
81 * XEGuiPrint -- print formated text using graphics
82 * @param format -- formated string
83 */
84extern void XEGuiPrint(const char* format, ...);
85
86#endif
EFI_STATUS XESetCursor(const unsigned char on)
Definition xnout.cpp:47
void XEClearScreen()
Definition xnout.cpp:39
void XEGetCurrentCursorPos(int *Col, int *Row)
Definition xnout.cpp:57
int XEPrintf(const char16_t *fmt,...)
Definition xnout.cpp:93
EFI_STATUS XESetCurrentCursorPos(const int Col, const int Row)
Definition xnout.cpp:67
void XEGuiPrint(const char *format,...)
Definition xnout.cpp:375
EFI_STATUS XESetTextAttribute(const int Back, const int Fore)
Definition xnout.cpp:76
RETURN_STATUS EFI_STATUS
Definition UefiBaseType.h:33