functui.io.curses¶
Functions for input and output with the curses module.
- functui.io.curses.draw_result(result: Result, stdscr: window)[source]¶
Display the result in a curses window.
You can get the curses window by wrapping your main function in a
wrapper().
- functui.io.curses.get_input_event(stdscr: window) InputEvent[source]¶
Block until an input event is sent, and return it in a standardized format.
- Parameters:
stdscr – (curses.window) A window that you can get by wrapping your main function in a
wrapper().- Returns:
InputEvent
- functui.io.curses.wrapper(func: Callable[[window], Any])[source]¶
Wrap your applications main function to start execution.
An additional wrapper around
curses.wrapper()that allows for mouse event detection and using a terminals default background and foreground colors.