< index < 2. Console < 2.1 Initializing the console | ===================================== 2.1.5 Switching between windowed and fullscreen modes ===================================== |

    C++ : static void TCODConsole::setFullscreen(bool fullscreen)
    C   : void TCOD_console_set_fullscreen(bool fullscreen)
    Py  : console_set_fullscreen(fullscreen)

This function switches the root console to fullscreen or windowed mode.

Parameter | Description
--- | ---
fullscreen | true to switch to fullscreen mode. false to switch to windowed mode.

Note that there is no predefined key combination to switch to/from fullscreen. You have to do this in your own code.
Example for an Alt-Enter combination :

    C++ : TCOD_key_t key=TCODConsole::checkForKeypress();
          if ( key.vk == TCODK_ENTER && key.lalt ) TCODConsole::setFullscreen(!TCODConsole::isFullscreen());
    C   : TCOD_key_t key=TCOD_console_check_for_keypress();
          if ( key.vk == TCODK_ENTER && key.lalt ) TCOD_console_set_fullscreen(!TCOD_console_is_fullscreen());
    Py  : key=libtcod.console_check_for_keypress()
          if key.vk == libtcod.KEY_ENTER and key.lalt : libtcod.console_set_fullscreen(not libtcod.console_is_fullscreen())