2002-10-29 18:40:02 +00:00
|
|
|
/*
|
|
|
|
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS text-mode setup
|
|
|
|
* FILE: subsys/system/usetup/console.h
|
|
|
|
* PURPOSE: Console support functions
|
|
|
|
* PROGRAMMER: Eric Kohl
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CONSOLE_H__
|
|
|
|
#define __CONSOLE_H__
|
|
|
|
|
2005-06-17 09:46:21 +00:00
|
|
|
#define AllocConsole ConAllocConsole
|
|
|
|
#define FreeConsole ConFreeConsole
|
|
|
|
#define ReadConsoleOutputCharacters ConReadConsoleOutputCharacters
|
|
|
|
#define ReadConsoleOutputAttributes ConReadConsoleOutputAttributes
|
|
|
|
#define WriteConsoleOutputCharacters ConWriteConsoleOutputCharacters
|
|
|
|
#define WriteConsoleOutputAttributes ConWriteConsoleOutputAttributes
|
|
|
|
#define FillConsoleOutputAttribute ConFillConsoleOutputAttribute
|
|
|
|
#undef FillConsoleOutputCharacter
|
|
|
|
#define FillConsoleOutputCharacter ConFillConsoleOutputCharacter
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2005-06-17 09:46:21 +00:00
|
|
|
ConAllocConsole(VOID);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
VOID
|
2005-06-17 09:46:21 +00:00
|
|
|
ConFreeConsole(VOID);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
NTSTATUS
|
2005-06-17 09:46:21 +00:00
|
|
|
ConReadConsoleOutputCharacters(LPSTR lpCharacter,
|
|
|
|
ULONG nLength,
|
|
|
|
COORD dwReadCoord,
|
|
|
|
PULONG lpNumberOfCharsRead);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2005-06-17 09:46:21 +00:00
|
|
|
ConReadConsoleOutputAttributes(PUSHORT lpAttribute,
|
|
|
|
ULONG nLength,
|
|
|
|
COORD dwReadCoord,
|
|
|
|
PULONG lpNumberOfAttrsRead);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2005-06-17 09:46:21 +00:00
|
|
|
ConWriteConsoleOutputCharacters(LPCSTR lpCharacter,
|
|
|
|
ULONG nLength,
|
|
|
|
COORD dwWriteCoord);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
2005-06-17 09:46:21 +00:00
|
|
|
ConWriteConsoleOutputAttributes(CONST USHORT *lpAttribute,
|
|
|
|
ULONG nLength,
|
|
|
|
COORD dwWriteCoord,
|
|
|
|
PULONG lpNumberOfAttrsWritten);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
2003-11-14 17:13:36 +00:00
|
|
|
NTSTATUS
|
2005-06-17 09:46:21 +00:00
|
|
|
ConFillConsoleOutputAttribute(USHORT wAttribute,
|
|
|
|
ULONG nLength,
|
|
|
|
COORD dwWriteCoord,
|
|
|
|
PULONG lpNumberOfAttrsWritten);
|
2003-11-14 17:13:36 +00:00
|
|
|
NTSTATUS
|
2005-06-17 09:46:21 +00:00
|
|
|
ConFillConsoleOutputCharacter(CHAR Character,
|
|
|
|
ULONG Length,
|
|
|
|
COORD WriteCoord,
|
|
|
|
PULONG NumberOfCharsWritten);
|
2003-11-14 17:13:36 +00:00
|
|
|
|
2002-10-29 18:40:02 +00:00
|
|
|
#if 0
|
|
|
|
NTSTATUS
|
|
|
|
SetConsoleMode(HANDLE hConsoleHandle,
|
|
|
|
ULONG dwMode);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ConInKey(PINPUT_RECORD Buffer);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ConOutChar(CHAR c);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ConOutPuts(LPSTR szText);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ConOutPrintf(LPSTR szFormat, ...);
|
|
|
|
|
|
|
|
SHORT
|
|
|
|
GetCursorX(VOID);
|
|
|
|
|
|
|
|
SHORT
|
|
|
|
GetCursorY(VOID);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
GetScreenSize(SHORT *maxx,
|
|
|
|
SHORT *maxy);
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
SetCursorType(BOOL bInsert,
|
|
|
|
BOOL bVisible);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
SetCursorXY(SHORT x,
|
|
|
|
SHORT y);
|
|
|
|
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ClearScreen(VOID);
|
|
|
|
|
|
|
|
VOID
|
2003-03-22 15:25:03 +00:00
|
|
|
SetStatusText(char* fmt, ...);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
2004-05-26 20:58:37 +00:00
|
|
|
VOID
|
|
|
|
InvertTextXY(SHORT x, SHORT y, SHORT col, SHORT row);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NormalTextXY(SHORT x, SHORT y, SHORT col, SHORT row);
|
|
|
|
|
2002-10-29 18:40:02 +00:00
|
|
|
VOID
|
|
|
|
SetTextXY(SHORT x, SHORT y, PCHAR Text);
|
|
|
|
|
|
|
|
VOID
|
2002-11-13 18:25:18 +00:00
|
|
|
SetInputTextXY(SHORT x, SHORT y, SHORT len, PWCHAR Text);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
VOID
|
|
|
|
SetUnderlinedTextXY(SHORT x, SHORT y, PCHAR Text);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
SetInvertedTextXY(SHORT x, SHORT y, PCHAR Text);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
SetHighlightedTextXY(SHORT x, SHORT y, PCHAR Text);
|
|
|
|
|
|
|
|
VOID
|
2002-11-23 01:55:27 +00:00
|
|
|
PrintTextXY(SHORT x, SHORT y, char* fmt, ...);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
PrintTextXYN(SHORT x, SHORT y, SHORT len, char* fmt, ...);
|
2002-10-29 18:40:02 +00:00
|
|
|
|
|
|
|
#endif /* __CONSOLE_H__*/
|
|
|
|
|
|
|
|
/* EOF */
|