gtui
Types
pub opaque type Application(state, message)
Functions
pub fn new_application(
state: a,
render: fn(a) -> String,
update: fn(a, b) -> #(a, Bool),
events: List(fn() -> #(Subject(b), fn() -> Nil)),
) -> Application(a, b)
Constructor to create a new Application
pub fn on_alt_screen(
appl: Application(a, b),
) -> Application(a, b)
Make the application work on an alternative screen