libtcoddocumentation

2.1.5. Communicate with the window manager

Changing the window title

This function dynamically changes the title of the game window.
Note that the window title is not visible while in fullscreen.

static void TCODConsole::setWindowTitle(const char *title)

void TCOD_console_set_window_title(const char *title)

console_set_window_title(title)

static void TCODConsole::setWindowTitle(string title)

tcod.console.setWindowTitle(title)

ParameterDescription
titleNew title of the game window

Handling "close window" events

When you start the program, this returns false. Once a "close window" event has been sent by the window manager, it will allways return true. You're supposed to exit cleanly the game.

static bool TCODConsole::isWindowClosed()

bool TCOD_console_is_window_closed()

console_is_window_closed()

static bool TCODConsole::isWindowClosed()

tcod.console.isWindowClosed()