Skip to content

TUI Functions

github-actions[bot] edited this page Aug 8, 2026 · 2 revisions

You can update TUI from plugins using cr.tui.

cr.tui.print_ansi(str)

Prints a string contains ANSI codes. Look for ANSI Support to see list of supported ANSI codes. Game uses this function to print banner at main menu. This function is very usefull for ANSI arts.

cr.tui.print_line(line)

Prints a line with box drawing character '─' to the give line number.

cr.tui.print_slots()

Prints slots.

cr.tui.print_stats()

Prints stats.

cr.tui.print_buffs()

Prints buffs.

cr.tui.print_inventory()

Prints inventory.

cr.tui.print_all()

Prints all(slots, stats, buffs, inventory).

Clone this wiki locally