< index
< 2. Console emulator
< 2.2 Drawing on the root console

=====================================
Clearing a console
=====================================

C++ : void TCODConsole::clear()
C   : void TCOD_console_clear(TCOD_console_t con)
Py  : console_clear(con)

This function modifies all cells of a console :
- set the cell's background color to the console default background color
- set the cell's foreground color to the console default foreground color
- set the cell's ASCII code to 32 (space)
ParameterDescription
conIn the C version, the offscreen console handler or NULL for the root console.
insert a comment