ReactOS 0.4.16-dev-2116-g5a43991
xboxcons.c File Reference
#include <freeldr.h>
#include "../../vidfb.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

UCHAR MachDefaultTextColor = COLOR_GRAY
 
static unsigned CurrentCursorX = 0
 
static unsigned CurrentCursorY = 0
 
static UCHAR CurrentAttr = ATTR(COLOR_GRAY, COLOR_BLACK)
 

Function Documentation

◆ XboxConsGetCh()

int XboxConsGetCh ( void  )

Definition at line 79 of file xboxcons.c.

80{
81 /* No keyboard support yet */
82 while (1) ;
83
84 return 0;
85}

Referenced by MachInit().

◆ XboxConsKbHit()

BOOLEAN XboxConsKbHit ( VOID  )

Definition at line 72 of file xboxcons.c.

73{
74 /* No keyboard support yet */
75 return FALSE;
76}
#define FALSE
Definition: types.h:117

Referenced by MachInit().

◆ XboxConsPutChar()

VOID XboxConsPutChar ( int  c)

Definition at line 29 of file xboxcons.c.

30{
32 BOOLEAN NeedScroll;
33
35
36 NeedScroll = (CurrentCursorY >= Height);
37 if (NeedScroll)
38 {
41 }
42
43 if (c == '\r')
44 {
46 }
47 else if (c == '\n')
48 {
50
51 if (!NeedScroll)
53 }
54 else if (c == '\t')
55 {
56 CurrentCursorX = (CurrentCursorX + 8) & ~ 7;
57 }
58 else
59 {
62 }
63
64 if (CurrentCursorX >= Width)
65 {
68 }
69}
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:89
_In_ HFONT _Out_ PUINT Height
Definition: font.h:88
VOID FbConsScrollUp(_In_ UCHAR Attr)
Definition: vidfb.c:477
static unsigned CurrentCursorX
Definition: xboxcons.c:24
static unsigned CurrentCursorY
Definition: xboxcons.c:25
static UCHAR CurrentAttr
Definition: xboxcons.c:26
VOID XboxVideoPutChar(int Ch, UCHAR Attr, unsigned X, unsigned Y)
Definition: xboxvideo.c:43
VOID XboxVideoGetDisplaySize(PULONG Width, PULONG Height, PULONG Depth)
Definition: xboxvideo.c:151

Referenced by MachInit().

Variable Documentation

◆ CurrentAttr

UCHAR CurrentAttr = ATTR(COLOR_GRAY, COLOR_BLACK)
static

Definition at line 26 of file xboxcons.c.

Referenced by XboxConsPutChar().

◆ CurrentCursorX

unsigned CurrentCursorX = 0
static

Definition at line 24 of file xboxcons.c.

Referenced by XboxConsPutChar().

◆ CurrentCursorY

unsigned CurrentCursorY = 0
static

Definition at line 25 of file xboxcons.c.

Referenced by XboxConsPutChar().

◆ MachDefaultTextColor

UCHAR MachDefaultTextColor = COLOR_GRAY

Definition at line 22 of file xboxcons.c.