View Source API Reference ElementTui v0.5.0
Modules
Main interface to the ElementTui library, for running a terminal user interface (TUI). Functions in this module allow parsing
elements and rendering them to the screen. The function ElementTui.run_loop/3
is a good starting point for running a TUI loop.
Opens a window (tb_init) and kills it on shutdown (tb_shutdown)
Elements are the core of the TUI layout. They are composable so that you can build complex layouts from simple elements.
Module to handle a list/stream of elements, while keeping one in focus. This module makes it easier to implement a scrollable (horizontal or vertical box).
Module to implement a basic input handler. Supports basic completions. Example of its usage is available on codeberg in the Todo example (todo.ex).
Thin wrapper around the termbox2 C library. In general a user should not need to use this directly, but instead use the main ElementTui module.
This genserver will be started by the application. It will also handle drawing, in order to make sure we write single threaded. In general a user should not need to use this directly, but instead use the main ElementTui module.