ReactOS 0.4.15-dev-5829-g6b6a045
xboxcons.c File Reference
#include <freeldr.h>
Include dependency graph for xboxcons.c:

Go to the source code of this file.

Functions

VOID XboxConsPutChar (int c)
 
BOOLEAN XboxConsKbHit (VOID)
 
int XboxConsGetCh (void)
 

Variables

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

Function Documentation

◆ XboxConsGetCh()

int XboxConsGetCh ( void  )

Definition at line 76 of file xboxcons.c.

77{
78 /* No keyboard support yet */
79 while (1) ;
80
81 return 0;
82}

Referenced by MachInit().

◆ XboxConsKbHit()

BOOLEAN XboxConsKbHit ( VOID  )

Definition at line 69 of file xboxcons.c.

70{
71 /* No keyboard support yet */
72 return FALSE;
73}
#define FALSE
Definition: types.h:117

Referenced by MachInit().

◆ XboxConsPutChar()

VOID XboxConsPutChar ( int  c)

Definition at line 26 of file xboxcons.c.

27{
29 BOOLEAN NeedScroll;
30
32
33 NeedScroll = (CurrentCursorY >= Height);
34 if (NeedScroll)
35 {
38 }
39
40 if (c == '\r')
41 {
43 }
44 else if (c == '\n')
45 {
47
48 if (!NeedScroll)
50 }
51 else if (c == '\t')
52 {
53 CurrentCursorX = (CurrentCursorX + 8) & ~ 7;
54 }
55 else
56 {
59 }
60
61 if (CurrentCursorX >= Width)
62 {
65 }
66}
unsigned char BOOLEAN
const GLubyte * c
Definition: glext.h:8905
#define Unused(x)
Definition: atlwin.h:28
uint32_t ULONG
Definition: typedefs.h:59
_In_ HFONT _Out_ PUINT _Out_ PUINT Width
Definition: font.h:126
_In_ HFONT _Out_ PUINT Height
Definition: font.h:125
static unsigned CurrentAttr
Definition: xboxcons.c:23
static unsigned CurrentCursorX
Definition: xboxcons.c:21
static unsigned CurrentCursorY
Definition: xboxcons.c:22
VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
Definition: xboxvideo.c:136
VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
Definition: xboxvideo.c:243
VOID XboxVideoScrollUp(VOID)
Definition: xboxvideo.c:108

Referenced by MachInit().

Variable Documentation

◆ CurrentAttr

unsigned CurrentAttr = 0x0f
static

Definition at line 23 of file xboxcons.c.

Referenced by XboxConsPutChar().

◆ CurrentCursorX

unsigned CurrentCursorX = 0
static

Definition at line 21 of file xboxcons.c.

Referenced by XboxConsPutChar().

◆ CurrentCursorY

unsigned CurrentCursorY = 0
static

Definition at line 22 of file xboxcons.c.

Referenced by XboxConsPutChar().