View Source API Reference ElementTui v0.5.1

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. To see the type of elements that can be rendered, check the ElementTui.Element module documentation and struct. Also check the examples repository: https://codeberg.org/edwinvanl/elementtui_examples

Opens a window (tb_init) and kills it on shutdown (tb_shutdown)

Protocol that needs to be implemented to support a component

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).

Minimal data needed for termbox2 puts function, to draw a line/string to the screen

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 interact sequentially with the termbox2 NIF. In general a user should not need to use this directly, but instead use the main ElementTui module.