*/
NewBuffer->ClientProcess = ProcessHandle;
- /* Get infos from the graphics buffer information structure */
+ /* Get information from the graphics buffer information structure */
NewBuffer->BitMapInfoLength = GraphicsInfo->Info.dwBitMapInfoLength;
NewBuffer->BitMapInfo = ConsoleAllocHeap(HEAP_ZERO_MEMORY, NewBuffer->BitMapInfoLength);
*/
/*
- * This is Windows' behaviour
+ * This is Windows behaviour.
*/
- /* Use the current console size. Regularize it if needed. */
+ /* Use the current console size. Normalize it if needed */
TextModeInfo.ScreenBufferSize = Console->ConsoleSize;
if (TextModeInfo.ScreenBufferSize.X == 0) TextModeInfo.ScreenBufferSize.X = 1;
if (TextModeInfo.ScreenBufferSize.Y == 0) TextModeInfo.ScreenBufferSize.Y = 1;
}
else if (CreateScreenBufferRequest->ScreenBufferType == CONSOLE_GRAPHICS_BUFFER)
{
- /* Get infos from the graphics buffer information structure */
+ /* Get information from the graphics buffer information structure */
if (!CsrValidateMessageBuffer(ApiMessage,
(PVOID*)&CreateScreenBufferRequest->GraphicsBufferInfo.lpBitMapInfo,
CreateScreenBufferRequest->GraphicsBufferInfo.dwBitMapInfoLength,
{
#define CONSOLE_VALID_CONTROL_MODES ( ENABLE_EXTENDED_FLAGS | \
ENABLE_INSERT_MODE | ENABLE_QUICK_EDIT_MODE )
+// NOTE: Vista+ ENABLE_AUTO_POSITION is also a control mode.
NTSTATUS Status;
PCONSOLE_GETSETCONSOLEMODE ConsoleModeRequest = &((PCONSOLE_API_MESSAGE)ApiMessage)->Data.ConsoleModeRequest;
if (GetType(Buff) == TEXTMODE_BUFFER)
{
+ /* Repaint the caret */
InvalidateCell(GuiData, Buff->CursorPosition.X, Buff->CursorPosition.Y);
Buff->CursorBlinkOn = !Buff->CursorBlinkOn;
if ((ConsoleStartInfo->dwStartupFlags & STARTF_TITLEISLINKNAME) == 0)
{
#if 0
- /* Load the terminal infos from the registry */
+ /* Load the terminal information from the registry */
GuiConsoleReadUserSettings(&GuiInitInfo->TermInfo);
#endif