< index < 2. Console < 2.4 Using off-screen consoles | ===================================== 2.4.3 Destroying an offscreen console ===================================== |

    C++ : TCODConsole::~TCODConsole()
    C   : void TCOD_console_delete(TCOD_console_t console)
    Py  : console_delete(console)

Use this function to destroy an offscreen console and release any resources allocated. Don't use it on the root console.

Parameter | Description
--- | ---
con | In the C version, the offscreen console handler.

Example :

    C++ : TCODConsole *off1 = new TCODConsole(80,50);
          ... use off1
          delete off1; // destroy the offscreen console
    C   : TCOD_console_t off1 = TCOD_console_new(80,50);
          ... use off1
          TCOD_console_delete(off1); /* destroy the offscreen console */
    Py  : off1 = libtcod.console_new(80,50)
          ... use off1
          libtcod.console_delete(off1) # destroy the offscreen console