ReactOS  0.4.15-dev-1070-ge1a01de
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 {
28  ULONG Width, Height, Unused;
29  BOOLEAN NeedScroll;
30 
31  XboxVideoGetDisplaySize(&Width, &Height, &Unused);
32 
33  NeedScroll = (CurrentCursorY >= Height);
34  if (NeedScroll)
35  {
38  }
39 
40  if (c == '\r')
41  {
42  CurrentCursorX = 0;
43  }
44  else if (c == '\n')
45  {
46  CurrentCursorX = 0;
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  {
63  CurrentCursorX = 0;
65  }
66 }
_Must_inspect_result_ typedef _In_ PVOID Unused
Definition: iotypes.h:1149
unsigned char BOOLEAN
VOID XboxVideoScrollUp(VOID)
Definition: xboxvideo.c:106
VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
Definition: xboxvideo.c:241
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:134
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().