termbox-glib Reference Manual
Packages
termbox-glib
Tbg
termbox-glib
Description:
Content:
Namespaces:
Tbg
Classes:
Cell
-
A snapshot of a termbox cell.
Event
-
An untyped terminal event.
KeyEvent
-
A key event.
MouseEvent
-
A mouse event.
ResizeEvent
-
A resize event.
Terminal
-
A process-global termbox terminal.
Structs:
Attr
-
A terminal attribute value used for foreground and background attributes.
Enums:
AttrFlags
-
Style flags that may be combined with foreground or background colors.
Color
-
Basic terminal colors.
EventType
-
Event types emitted by
Terminal
.
InputMode
-
Input mode flags.
Key
-
Key values for key and mouse events.
Modifier
-
Modifier flags for key and mouse events.
OutputMode
-
Output modes that control how color attributes are interpreted.
Error domains:
Error
-
Error codes for termbox-glib.
Constants:
public
const
int
MAJOR_VERSION
termbox-glib major version component.
public
const
int
MICRO_VERSION
termbox-glib micro version component.
public
const
int
MINOR_VERSION
termbox-glib minor version component.
public
const
string
VERSION_S
termbox-glib version encoded as a string.
Methods:
public
Quark
error_quark
()
Return the error domain for termbox-glib errors.
public
uint
get_major_version
()
Gets the major version number of the loaded termbox-glib library.
public
uint
get_micro_version
()
Gets the micro version number of the loaded termbox-glib library.
public
uint
get_minor_version
()
Gets the minor version number of the loaded termbox-glib library.
public
unowned
string
get_termbox_version
()
Gets the version string of the bundled termbox2 library.
public
unowned
string
get_version
()
Gets the version string of the loaded termbox-glib library.
public
int
unichar_width
(
unichar
ch)
Return the terminal cell width termbox uses for
ch
.