ReactOS 0.4.15-dev-6049-ge54b32b
ueficon.c File Reference
#include <uefildr.h>
Include dependency graph for ueficon.c:

Go to the source code of this file.

Macros

#define CHAR_WIDTH   8
 
#define CHAR_HEIGHT   16
 

Functions

VOID UefiConsPutChar (int c)
 

Variables

EFI_SYSTEM_TABLEGlobalSystemTable
 
static unsigned CurrentCursorX = 0
 
static unsigned CurrentCursorY = 0
 
static unsigned CurrentAttr = 0x0f
 

Macro Definition Documentation

◆ CHAR_HEIGHT

#define CHAR_HEIGHT   16

Definition at line 11 of file ueficon.c.

◆ CHAR_WIDTH

#define CHAR_WIDTH   8

Definition at line 10 of file ueficon.c.

Function Documentation

◆ UefiConsPutChar()

VOID UefiConsPutChar ( int  c)

Definition at line 23 of file ueficon.c.

24{
26 BOOLEAN NeedScroll;
27
29
30 NeedScroll = (CurrentCursorY >= Height);
31 if (NeedScroll)
32 {
35 }
36 if (c == '\r')
37 {
39 }
40 else if (c == '\n')
41 {
43
44 if (!NeedScroll)
46 }
47 else if (c == '\t')
48 {
49 CurrentCursorX = (CurrentCursorX + 8) & ~7;
50 }
51 else
52 {
55 }
56 if (CurrentCursorX >= Width)
57 {
60 }
61}
unsigned char BOOLEAN
const GLubyte * c
Definition: glext.h:8905
#define Unused(x)
Definition: atlwin.h:28
uint32_t ULONG
Definition: typedefs.h:59
static unsigned CurrentAttr
Definition: ueficon.c:18
static unsigned CurrentCursorX
Definition: ueficon.c:16
static unsigned CurrentCursorY
Definition: ueficon.c:17
VOID UefiVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
Definition: uefivid.c:154
VOID UefiVideoScrollUp(VOID)
Definition: uefivid.c:191
VOID UefiVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
Definition: uefivid.c:142
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:126
_In_ HFONT _Out_ PUINT Height
Definition: font.h:125

Referenced by MachInit().

Variable Documentation

◆ CurrentAttr

unsigned CurrentAttr = 0x0f
static

Definition at line 18 of file ueficon.c.

Referenced by UefiConsPutChar().

◆ CurrentCursorX

unsigned CurrentCursorX = 0
static

Definition at line 16 of file ueficon.c.

Referenced by UefiConsPutChar().

◆ CurrentCursorY

unsigned CurrentCursorY = 0
static

Definition at line 17 of file ueficon.c.

Referenced by UefiConsPutChar().

◆ GlobalSystemTable

EFI_SYSTEM_TABLE* GlobalSystemTable
extern

Definition at line 15 of file uefildr.c.