titrmlib

A curses-style TUI library for the TI-84 Plus CE. Panels, widgets, scenes, dialogs, colors and text styles for CE C programs.

View the Project on GitHub gavinhsmith/titrmlib

Lifecycle

Starting, running and stopping the framework.

Functions

Return Name Description
term_ctx_t * term_init Takes over the screen. Only one context exists; calling twice returns it.
void term_shutdown Gives the screen back to the OS.
int term_run Runs the draw + input loop. Blocks until term_quit(); returns its result.
void term_quit Ends term_run() after the current event; it returns result.
void term_set_tick Deliver TERM_EV_TICK every ms milliseconds (0 turns ticks off).

term_init

term_ctx_t * term_init(void)

Defined in src/titrm.h:217

Takes over the screen. Only one context exists; calling twice returns it.


term_shutdown

void term_shutdown(term_ctx_t * ctx)

Defined in src/titrm.h:220

Gives the screen back to the OS.


term_run

int term_run(term_ctx_t * ctx, term_update_fn update, void * state)

Defined in src/titrm.h:228

Runs the draw + input loop. Blocks until term_quit(); returns its result.

update is the global event handler. The screen is redrawn whenever something on it changed.


term_quit

void term_quit(term_ctx_t * ctx, int result)

Defined in src/titrm.h:231

Ends term_run() after the current event; it returns result.


term_set_tick

void term_set_tick(term_ctx_t * ctx, unsigned ms)

Defined in src/titrm.h:234

Deliver TERM_EV_TICK every ms milliseconds (0 turns ticks off).