Class
TermboxTerminal
Description
final class Termbox.Terminal : GObject.Object
{
/* No available fields */
}
A process-global termbox terminal.
Termbox2 stores terminal state globally, so only one TbgTerminal may exist
at a time. Constructors fail with TBG_ERROR_INIT_ALREADY if a terminal is
already active; use tbg_terminal_get_default() to retrieve the existing
terminal. The underlying termbox instance is shut down when the terminal is finalized.
termbox-glib does not add locking around termbox2’s process-global terminal
state. Create, use, and destroy TbgTerminal from the main thread, and attach
its event source to a main-thread GMainContext.
Constructors
tbg_terminal_new_for_fd
Initialize termbox from an existing terminal file descriptor and return the terminal singleton.
tbg_terminal_new_for_fds
Initialize termbox from separate terminal file descriptors and return the terminal singleton.
tbg_terminal_new_for_path
Initialize termbox from a terminal device path and return the terminal singleton.
Instance methods
tbg_terminal_create_event_source
Create a GSource that integrates termbox events with a GMainContext.
tbg_terminal_invalidate
Clear termbox’s internal front buffer so the next present forces a complete re-render of the back buffer.
tbg_terminal_print_ex
Print UTF-8 text into the internal back buffer and optionally return its display width.
tbg_terminal_printf_ex
Format UTF-8 text, print it into the internal back buffer, and optionally return its display width.
tbg_terminal_set_cell_ex
Set a cell in the internal back buffer using one or more Unicode code points. This is the grapheme-cluster variant of tbg_terminal_set_cell().
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.