Namespace

Termbox – 0.1

GLib wrapper around termbox2

Version0.1.0
AuthorsSam Dolt
LicenseLGPL-2.1-or-later
Websitehttps://git.sr.ht/~samdolt/termbox-glib
Sourcehttps://git.sr.ht/~samdolt/termbox-glib

Build

C headerstermbox-glib.h
pkg-config filestermbox-glib-0.1

Dependencies

GLib—2.0 The base utility library
Browse documentation
GObject—2.0 The base type system library
Browse documentation

Classes

Terminal

A process-global termbox terminal.

Structs

Cell

A snapshot of a termbox cell.

Event

An untyped terminal event.

KeyEvent

A key event.

MouseEvent

A mouse event.

ResizeEvent

A resize event.

Aliases

Attr

A terminal attribute value used for foreground and background attributes.

Enumerations

Color

Basic terminal colors.

EventType

Event types emitted by TbgTerminal.

Key

Key values for key and mouse events.

OutputMode

Output modes that control how color attributes are interpreted.

Bitfields

AttrFlags

Style flags that may be combined with foreground or background colors.

InputMode

Input mode flags.

Modifier

Modifier flags for key and mouse events.

Error Domains

Error

Error codes for termbox-glib.

Functions

attr_color

Create an attribute for one of the eight basic colors.

attr_default

Return the default terminal attribute.

attr_flags

Encode style flags into a terminal attribute.

attr_has_flags

Check whether an attribute contains all flags.

attr_indexed

Create an indexed-color attribute.

attr_rgb

Create a truecolor RGB attribute.

get_major_version

Gets the major version number of the loaded termbox-glib library.

get_micro_version

Gets the micro version number of the loaded termbox-glib library.

get_minor_version

Gets the minor version number of the loaded termbox-glib library.

get_termbox_version

Gets the version string of the bundled termbox2 library.

get_version

Gets the version string of the loaded termbox-glib library.

unichar_width

Return the terminal cell width termbox uses for ch.

Function Macros

CHECK_VERSION

Compile-time version checking.

DEPRECATED_FOR

Marks a public function as deprecated in favor of f.

DEPRECATED_IN_0_1_FOR

Marks a public function as deprecated in version 0.1 in favor of f.

DEPRECATED_TYPE_FOR

Marks a public type as deprecated in favor of f.

DEPRECATED_TYPE_IN_0_1_FOR

Marks a public type as deprecated in version 0.1 in favor of f.

ENCODE_VERSION

Encode a version triplet into an integer suitable for comparison.

UNAVAILABLE

Marks a public symbol as unavailable before a version.

Constants

MAJOR_VERSION

Termbox-glib major version component.

MICRO_VERSION

Termbox-glib micro version component.

MINOR_VERSION

Termbox-glib minor version component.

VERSION_S

Termbox-glib version encoded as a string.