functui.io.ansi
Functions to convert layouts to styled strings that can be rendered in a terminal.
-
functui.io.ansi.layout_to_str(layout: Layout, dimensions: Rect) → str[source]
Convert a layout to a string with ansi escapecodes that can be displayed in a terminal.
This is a shorthand for result_to_str(layout_to_result(...))).
-
functui.io.ansi.result_to_str(result: Result) → str[source]
Convert a result to a string with ansi escapecodes that can be displayed in a terminal.