Termbox2 NIF for Elixir - A terminal UI library.
Summary
Functions
Read back the back buffer as a row-major list of {ch, fg, bg} tuples.
Clear the terminal.
Get the height of the terminal.
Hide the cursor. Returns 0 on success, -1 on error.
Initialize the termbox2 library. Returns 0 on success, -1 on error.
Present the changes to the terminal.
Print a string at the specified position. Returns 0 on success, -1 on error.
Set a cell in the terminal. Returns 0 on success, -1 on error.
Set the cursor position.
Set the input mode. Returns the previous mode.
Set the output mode. Returns the previous mode.
Set the terminal window position. Returns {:ok, "set"} on success, {:error, reason} on failure.
Set the terminal title. Returns {:ok, "set"} on success, {:error, reason} on failure.
Shutdown the termbox2 library.
Get the width of the terminal.
Functions
Read back the back buffer as a row-major list of {ch, fg, bg} tuples.
One tuple per cell, tb_width() * tb_height() in total, indexed
(y * width) + x. Reflects drawing calls (tb_set_cell, tb_print) before
tb_present. Used by the reference-oracle equivalence tests.
Clear the terminal.
Get the height of the terminal.
Hide the cursor. Returns 0 on success, -1 on error.
Initialize the termbox2 library. Returns 0 on success, -1 on error.
Present the changes to the terminal.
Print a string at the specified position. Returns 0 on success, -1 on error.
Set a cell in the terminal. Returns 0 on success, -1 on error.
Set the cursor position.
Set the input mode. Returns the previous mode.
Set the output mode. Returns the previous mode.
Set the terminal window position. Returns {:ok, "set"} on success, {:error, reason} on failure.
Set the terminal title. Returns {:ok, "set"} on success, {:error, reason} on failure.
Shutdown the termbox2 library.
Get the width of the terminal.