Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 2.12 KB

console-modes.md

File metadata and controls

26 lines (21 loc) · 2.12 KB
title description author ms.author ms.topic keywords MS-HAID MSHAttr ms.assetid
Console Modes
Associated with each console input buffer is a set of input modes that affects input operations.
miniksa
miniksa
conceptual
console, character mode applications, command line applications, terminal applications, console api
\_win32\_console\_modes
base.console\_modes
consoles.console\_modes
PreferredSiteName:MSDN
PreferredLib:/library/windows/desktop
f0dcc123-3b12-44c4-8f94-920203f5198e

Console Modes

Associated with each console input buffer is a set of input modes that affects input operations. Similarly, each console screen buffer has a set of output modes that affects output operations. The input modes can be divided into two groups: those that affect the high-level input functions and those that affect the low-level input functions. The output modes only affect applications that use the high-level output functions.

The GetConsoleMode function reports the current input mode of a console's input buffer or the current output mode of a screen buffer. The SetConsoleMode function sets the current mode of either a console input buffer or a screen buffer. If a console has multiple screen buffers, the output modes of each can be different. An application can change I/O modes at any time. For more information about the console modes that affect high-level and low-level I/O operations, see High-Level Console Modes and Low-Level Console Modes.

A command-line application should expect that other command-line applications may change the console mode at any time and may not restore it to its original form before control is returned. Additionally, we recommend that all command-line applications should capture the initial console mode at startup and attempt to restore it when exiting to ensure minimal impact on other command-line applications attached to the same console.

The GetConsoleDisplayMode function reports whether the current console is in full-screen mode.