Enumeration

TermboxError

Declaration

error-domain Termbox.Error

Description

Error codes for termbox-glib.

Values are the positive equivalents of termbox2 TB_ERR_* values.

Members

TBG_ERROR_FAILED

Generic failure.

  • Value: 1
  • Available since: 0.1
TBG_ERROR_NEED_MORE

More input is needed.

  • Value: 2
  • Available since: 0.1
TBG_ERROR_INIT_ALREADY

Termbox is already initialized.

  • Value: 3
  • Available since: 0.1
TBG_ERROR_INIT_OPEN

Failed to open the terminal.

  • Value: 4
  • Available since: 0.1
TBG_ERROR_NO_MEMORY

Memory allocation failed.

  • Value: 5
  • Available since: 0.1
TBG_ERROR_NO_EVENT

No event is available.

  • Value: 6
  • Available since: 0.1
TBG_ERROR_NO_TERM

No terminal is available.

  • Value: 7
  • Available since: 0.1
TBG_ERROR_NOT_INITIALIZED

Termbox is not initialized.

  • Value: 8
  • Available since: 0.1
TBG_ERROR_OUT_OF_BOUNDS

Coordinate is outside the terminal buffer.

  • Value: 9
  • Available since: 0.1
TBG_ERROR_READ

Failed to read terminal input.

  • Value: 10
  • Available since: 0.1
TBG_ERROR_RESIZE_IOCTL

Resize ioctl failed.

  • Value: 11
  • Available since: 0.1
TBG_ERROR_RESIZE_PIPE

Resize pipe setup failed.

  • Value: 12
  • Available since: 0.1
TBG_ERROR_RESIZE_SIGACTION

Resize signal setup failed.

  • Value: 13
  • Available since: 0.1
TBG_ERROR_POLL

Polling failed.

  • Value: 14
  • Available since: 0.1
TBG_ERROR_TCGETATTR

tcgetattr() failed.

  • Value: 15
  • Available since: 0.1
TBG_ERROR_TCSETATTR

tcsetattr() failed.

  • Value: 16
  • Available since: 0.1
TBG_ERROR_UNSUPPORTED_TERM

Terminal is unsupported.

  • Value: 17
  • Available since: 0.1
TBG_ERROR_RESIZE_WRITE

Resize write failed.

  • Value: 18
  • Available since: 0.1
TBG_ERROR_RESIZE_POLL

Resize polling failed.

  • Value: 19
  • Available since: 0.1
TBG_ERROR_RESIZE_READ

Resize read failed.

  • Value: 20
  • Available since: 0.1
TBG_ERROR_RESIZE_SSCANF

Resize response parsing failed.

  • Value: 21
  • Available since: 0.1
TBG_ERROR_CAP_COLLISION

Terminfo capability collision.

  • Value: 22
  • Available since: 0.1

Type functions

tbg_error_quark

Return the error domain for termbox-glib errors.