< index < 2. Console < 2.2 Drawing on the root console | ===================================== Modifying the ASCII code of a cell ===================================== |

    C++ : void TCODConsole::setChar(int x, int y, int c)
    C   : void TCOD_console_set_char(TCOD_console_t con,int x, int y, int c)
    Py  : console_set_char(con, x,  y, c)

This function modifies the ASCII code of a cell, leaving other properties (background and foreground colors) unchanged.
Note that since a clear console has both background and foreground colors set to black for every cell, using setchar will produce black characters on black background. Use putchar instead.

Parameter | Description
--- | ---
con | In the C version, the offscreen console handler or NULL for the root console.
x,y | Coordinates of the cell in the console. 0 <= x < console width 0 <= y < console height
c | The new ASCII code for the cell between 0 and 255. You can use ASCII constants.