ReactOS 0.4.16-dev-2104-gb84fa49
xboxcons.c
Go to the documentation of this file.
1/*
2 * FreeLoader
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18
19#include <freeldr.h>
20#include "../../vidfb.h"
21
23
24static unsigned CurrentCursorX = 0;
25static unsigned CurrentCursorY = 0;
27
28VOID
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}
70
73{
74 /* No keyboard support yet */
75 return FALSE;
76}
77
78int
80{
81 /* No keyboard support yet */
82 while (1) ;
83
84 return 0;
85}
86
87/* EOF */
unsigned char BOOLEAN
#define COLOR_GRAY
Definition: ui.h:335
#define ATTR(cFore, cBack)
Definition: ui.h:323
#define COLOR_BLACK
Definition: ui.h:328
#define FALSE
Definition: types.h:117
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
BOOLEAN XboxConsKbHit(VOID)
Definition: xboxcons.c:72
VOID XboxConsPutChar(int c)
Definition: xboxcons.c:29
static unsigned CurrentCursorX
Definition: xboxcons.c:24
static unsigned CurrentCursorY
Definition: xboxcons.c:25
int XboxConsGetCh(void)
Definition: xboxcons.c:79
UCHAR MachDefaultTextColor
Definition: xboxcons.c:22
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
unsigned char UCHAR
Definition: xmlstorage.h:181