Function

TermboxTerminalget_default

Declaration

TbgTerminal*
tbg_terminal_get_default (
  void
)

Description

Return the current terminal singleton.

This returns NULL if no terminal has been created. The returned terminal is owned by the caller. When the terminal is finalized, a later call to tbg_terminal_new() may initialize termbox again and create a new terminal.

Return value

Type: TbgTerminal

The current TbgTerminal, or NULL.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The return value can be NULL.