Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232/* * ReactOS kernel * Copyright (C) 2002 ReactOS Team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *//* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS text-mode setup * FILE: base/setup/usetup/consup.h * PURPOSE: Console support functions * PROGRAMMER: */
#pragma once
#define FOREGROUND_WHITE (FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE)#define FOREGROUND_YELLOW (FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN)#define BACKGROUND_WHITE (BACKGROUND_RED | BACKGROUND_GREEN | BACKGROUND_BLUE)
/* Text style */#define TEXT_STYLE_NORMAL 0x00000001#define TEXT_STYLE_HIGHLIGHT 0x00000002#define TEXT_STYLE_UNDERLINE 0x00000004
/* Text type */#define TEXT_TYPE_REGULAR 0x00000008#define TEXT_TYPE_STATUS 0x00000010
/* Text align */#define TEXT_ALIGN_DEFAULT 0x00000020#define TEXT_ALIGN_RIGHT 0x00000040#define TEXT_ALIGN_LEFT 0x00000080#define TEXT_ALIGN_CENTER 0x00000100
/* Text padding */#define TEXT_PADDING_SMALL 0x00000200 /* One space */#define TEXT_PADDING_MEDIUM 0x00000400 /* Two spaces */#define TEXT_PADDING_BIG 0x00000800 /* Three spaces */
extern HANDLE StdInput, StdOutput;extern SHORT xScreen, yScreen;
BOOLEANCONSOLE_Init(VOID);
VOIDCONSOLE_ClearScreen(VOID);
VOIDCONSOLE_ConInKey( OUT PINPUT_RECORD Buffer);
BOOLEANCONSOLE_ConInKeyPeek( OUT PINPUT_RECORD Buffer);
VOIDCONSOLE_ConOutChar( IN CHAR c);
VOIDCONSOLE_ConOutPrintfV( IN LPCSTR szFormat, IN va_list args);
VOID__cdeclCONSOLE_ConOutPrintf( IN LPCSTR szFormat, ...);
VOIDCONSOLE_ConOutPuts( IN LPCSTR szText);
BOOLCONSOLE_Flush(VOID);
VOIDCONSOLE_GetCursorXY( OUT PSHORT x, OUT PSHORT y);
SHORTCONSOLE_GetCursorX(VOID);
SHORTCONSOLE_GetCursorY(VOID);
VOIDCONSOLE_InvertTextXY( IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row);
VOIDCONSOLE_NormalTextXY( IN SHORT x, IN SHORT y, IN SHORT col, IN SHORT row);
VOID__cdeclCONSOLE_PrintTextXY( IN SHORT x, IN SHORT y, IN LPCSTR fmt, ...);
VOID__cdeclCONSOLE_PrintTextXYN( IN SHORT x, IN SHORT y, IN SHORT len, IN LPCSTR fmt, ...);
VOIDCONSOLE_SetCursorType( IN BOOL bInsert, IN BOOL bVisible);
VOIDCONSOLE_SetCursorXY( IN SHORT x, IN SHORT y);
VOIDCONSOLE_SetCursorXY( IN SHORT x, IN SHORT y);
VOIDCONSOLE_SetHighlightedTextXY( IN SHORT x, IN SHORT y, IN LPCSTR Text);
VOIDCONSOLE_SetInputTextXY( IN SHORT x, IN SHORT y, IN SHORT len, IN LPCWSTR Text);
VOIDCONSOLE_SetInvertedTextXY( IN SHORT x, IN SHORT y, IN LPCSTR Text);
VOIDCONSOLE_SetStatusTextV( IN LPCSTR fmt, IN va_list args);
VOID__cdeclCONSOLE_SetStatusText( IN LPCSTR fmt, ...);
VOIDCONSOLE_SetStatusTextXV( IN SHORT x, IN LPCSTR fmt, IN va_list args);
VOID__cdeclCONSOLE_SetStatusTextX( IN SHORT x, IN LPCSTR fmt, ...);
VOID__cdeclCONSOLE_SetStatusTextAutoFitX( IN SHORT x, IN LPCSTR fmt, ...);
VOIDCONSOLE_SetTextXY( IN SHORT x, IN SHORT y, IN LPCSTR Text);
VOIDCONSOLE_ClearTextXY( IN SHORT x, IN SHORT y, IN SHORT Length);
VOIDCONSOLE_SetUnderlinedTextXY( IN SHORT x, IN SHORT y, IN LPCSTR Text);
VOIDCONSOLE_SetStyledText( IN SHORT x, IN SHORT y, IN INT Flags, IN LPCSTR Text);
VOIDCONSOLE_ClearStyledText( IN SHORT x, IN SHORT y, IN INT Flags, IN SHORT Length);
/* EOF */