Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenxboxcons.c
Go to the documentation of this file.
00001 /* $Id: xboxcons.c 43790 2009-10-27 10:34:16Z dgorbachev $ 00002 * 00003 * FreeLoader 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License along 00016 * with this program; if not, write to the Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00018 */ 00019 00020 #include <freeldr.h> 00021 00022 static unsigned CurrentCursorX = 0; 00023 static unsigned CurrentCursorY = 0; 00024 static unsigned CurrentAttr = 0x0f; 00025 00026 VOID 00027 XboxConsPutChar(int c) 00028 { 00029 ULONG Width; 00030 ULONG Height; 00031 ULONG Depth; 00032 00033 if ('\r' == c) 00034 { 00035 CurrentCursorX = 0; 00036 } 00037 else if ('\n' == c) 00038 { 00039 CurrentCursorX = 0; 00040 CurrentCursorY++; 00041 } 00042 else if ('\t' == c) 00043 { 00044 CurrentCursorX = (CurrentCursorX + 8) & ~ 7; 00045 } 00046 else 00047 { 00048 XboxVideoPutChar(c, CurrentAttr, CurrentCursorX, CurrentCursorY); 00049 CurrentCursorX++; 00050 } 00051 XboxVideoGetDisplaySize(&Width, &Height, &Depth); 00052 if (Width <= CurrentCursorX) 00053 { 00054 CurrentCursorX = 0; 00055 CurrentCursorY++; 00056 } 00057 } 00058 00059 BOOLEAN 00060 XboxConsKbHit(VOID) 00061 { 00062 /* No keyboard support yet */ 00063 return FALSE; 00064 } 00065 00066 int 00067 XboxConsGetCh(void) 00068 { 00069 /* No keyboard support yet */ 00070 while (1) 00071 { 00072 ; 00073 } 00074 00075 return 0; 00076 } 00077 00078 /* EOF */ Generated on Sun May 27 2012 04:19:08 for ReactOS by
1.7.6.1
|