mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[CONSRV]: Code reorganization part 2 (add some comments for future fixes).
svn path=/branches/condrv_restructure/; revision=64043
This commit is contained in:
@@ -96,7 +96,7 @@ ConSrvCloseHandle(IN PCONSOLE_IO_HANDLE Handle)
|
||||
* even of the last buffer, but having to deal with a lack of
|
||||
* any active buffer might be error-prone. */
|
||||
if (Buffer->ListEntry.Flink != Buffer->ListEntry.Blink)
|
||||
ConioDeleteScreenBuffer(Buffer);
|
||||
ConDrvDeleteScreenBuffer(Buffer);
|
||||
}
|
||||
else if (Object->Type == INPUT_BUFFER)
|
||||
{
|
||||
|
||||
@@ -191,7 +191,7 @@ typedef struct _CONSOLE_INPUT_BUFFER
|
||||
{
|
||||
CONSOLE_IO_OBJECT Header; /* Object header - MUST BE IN FIRST PLACE */
|
||||
|
||||
ULONG InputBufferSize; /* Size of this input buffer */
|
||||
ULONG InputBufferSize; /* Size of this input buffer -- UNUSED!! */
|
||||
LIST_ENTRY InputEvents; /* List head for input event queue */
|
||||
HANDLE ActiveEvent; /* Event set when an input event is added in its queue */
|
||||
|
||||
@@ -344,6 +344,11 @@ NTSTATUS
|
||||
ConSrvConsoleCtrlEvent(IN ULONG CtrlEvent,
|
||||
IN PCONSOLE_PROCESS_DATA ProcessData);
|
||||
|
||||
|
||||
#define GetConsoleInputBufferMode(Console) \
|
||||
(Console)->InputBuffer.Mode
|
||||
|
||||
|
||||
/* conoutput.c */
|
||||
PCHAR_INFO ConioCoordToPointer(PTEXTMODE_SCREEN_BUFFER Buff, ULONG X, ULONG Y);
|
||||
VOID ConioDrawConsole(PCONSOLE /*PCONSRV_CONSOLE*/ Console);
|
||||
|
||||
@@ -62,6 +62,9 @@ typedef struct _CONSOLE_INFO
|
||||
|
||||
/*
|
||||
* Structure used to communicate with console.dll
|
||||
*
|
||||
* FIXME: It should overlap with the Windows' CONSOLE_STATE_INFO structure
|
||||
* for GUI terminals!!
|
||||
*/
|
||||
typedef struct _CONSOLE_PROPS
|
||||
{
|
||||
|
||||
@@ -404,7 +404,7 @@ ConSrvGetDefaultSettings(IN OUT PCONSOLE_INFO ConsoleInfo,
|
||||
|
||||
ConsoleInfo->QuickEdit = FALSE;
|
||||
ConsoleInfo->InsertMode = TRUE;
|
||||
// ConsoleInfo->InputBufferSize;
|
||||
// ConsoleInfo->InputBufferSize = 0;
|
||||
|
||||
// Rule: ScreenBufferSize >= ConsoleSize
|
||||
ConsoleInfo->ScreenBufferSize.X = 80;
|
||||
|
||||
Reference in New Issue
Block a user