[][src]Function fenestroj::wincon::get_console_display_mode

pub fn get_console_display_mode() -> Result<u32, ErrorCode>

Gets the display mode of the current console.

Output will generally be one of:

  • 0: Windowed.
  • 1: CONSOLE_FULLSCREEN, the console is maximized, but transition to full-screen mode can still fail.
  • 2: CONSOLE_FULLSCREEN_HARDWARE, the console is maximized and directly using the video hardware.

See GetConsoleDisplayMode