Tcod

Latest version: v16.2.3

Safety actively analyzes 706259 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 20 of 44

8.5.0

Added

- `tcod.console.Console` now supports `str` and `repr`.
- Added new Console methods which are independent from the console defaults.
- You can now give an array when initializing a `tcod.console.Console`
instance.
- `Console.clear` can now take `ch`, `fg`, and `bg` parameters.

Changed

- Updated libtcod to 1.10.6
- Printing generates more compact layouts.

Deprecated

- Most libtcodpy console functions have been replaced by the tcod.console
module.
- Deprecated the `set_key_color` functions. You can pass key colors to
`Console.blit` instead.
- `Console.clear` should be given the colors to clear with as parameters,
rather than by using `default_fg` or `default_bg`.
- Most functions which depend on console default values have been deprecated.
The new deprecation warnings will give details on how to make default values
explicit.

Fixed

- `tcod.console.Console.blit` was ignoring the key color set by
`Console.set_key_color`.
- The `SDL2` and `OPENGL2` renders can now large numbers of tiles.

8.4.3

Changed

- Updated libtcod to 1.10.5
- The SDL2/OPENGL2 renderers will now auto-detect a custom fonts key-color.

8.4.2

Deprecated

- The tdl module has been deprecated.
- The libtcodpy parser functions have been deprecated.

Fixed

- `tcod.image_is_pixel_transparent` and `tcod.image_get_alpha` now return
values.
- `Console.print_frame` was clearing tiles outside if its bounds.
- The `FONT_LAYOUT_CP437` layout was incorrect.

8.4.1

Fixed

- Window event types were not upper-case.
- Fixed regression where libtcodpy mouse wheel events unset mouse coordinates.

8.4.0

Added

- Added tcod.event module, based off of the sdlevent.py shim.

Changed

- Updated libtcod to 1.10.3

Fixed

- Fixed libtcodpy `struct_add_value_list` function.
- Use correct math for tile-based delta in mouse events.
- New renderers now support tile-based mouse coordinates.
- SDL2 renderer will now properly refresh after the window is resized.

8.3.2

Fixed

- Fixed rare access violations for some functions which took strings as
parameters, such as `tcod.console_init_root`.

Page 20 of 44

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.