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

=====================================
Reading the ASCII code of a cell
=====================================

C++ : int TCODConsole::getChar(int x, int y) const
C   : int TCOD_console_get_char(TCOD_console_t con,int x, int y)
Py  : console_get_char(con,x,y)

This function returns the current ASCII code of a cell.
ParameterDescription
conIn the C version, the offscreen console handler or NULL for the root console.
x,yCoordinates of the cell in the console.
0 <= x < console width
0 <= y < console height
insert a comment