ReactOS  0.4.14-dev-1331-g167fa2c
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 66 of file xboxcons.c.

67 {
68  /* No keyboard support yet */
69  while (1) ;
70 
71  return 0;
72 }

Referenced by MachInit().

◆ XboxConsKbHit()

BOOLEAN XboxConsKbHit ( VOID  )

Definition at line 59 of file xboxcons.c.

60 {
61  /* No keyboard support yet */
62  return FALSE;
63 }

Referenced by MachInit().

◆ XboxConsPutChar()

VOID XboxConsPutChar ( int  c)

Definition at line 26 of file xboxcons.c.

27 {
28  ULONG Width, Unused;
29 
30  if (c == '\r')
31  {
32  CurrentCursorX = 0;
33  }
34  else if (c == '\n')
35  {
36  CurrentCursorX = 0;
38  }
39  else if (c == '\t')
40  {
41  CurrentCursorX = (CurrentCursorX + 8) & ~ 7;
42  }
43  else
44  {
47  }
48 
50  if (CurrentCursorX >= Width)
51  {
52  CurrentCursorX = 0;
54  }
55  // FIXME: Implement vertical screen scrolling if we are at the end of the screen.
56 }
_Must_inspect_result_ typedef _In_ PVOID Unused
Definition: iotypes.h:1129
VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
Definition: xboxvideo.c:222
const GLubyte * c
Definition: glext.h:8905
static unsigned CurrentCursorX
Definition: xboxcons.c:21
VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
Definition: xboxvideo.c:115
static unsigned CurrentCursorY
Definition: xboxcons.c:22
unsigned int ULONG
Definition: retypes.h:1
static unsigned CurrentAttr
Definition: xboxcons.c:23

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().