Method
TermboxTerminalset_input_mode
Declaration
gboolean
tbg_terminal_set_input_mode (
TbgTerminal* self,
TbgInputMode mode,
GError** error
)
Description
Set the input mode.
TBG_INPUT_MODE_ESC makes unmatched escape bytes produce
TBG_KEY_ESC key events. TBG_INPUT_MODE_ALT makes an unmatched escape byte apply TBG_MODIFIER_ALT to the next key event. TBG_INPUT_MODE_MOUSE enables
mouse events and may be combined with either main mode. If only
TBG_INPUT_MODE_MOUSE is set, termbox behaves as if TBG_INPUT_MODE_ESC was
also selected. If both TBG_INPUT_MODE_ESC and TBG_INPUT_MODE_ALT are set,
termbox behaves as if only TBG_INPUT_MODE_ESC was selected.
Parameters
mode-
Type:
TbgInputModeThe input mode flags.
error-
Type:
GError **The return location for a recoverable error.
The argument can be NULL.If the return location is not NULL, then you must initialize it to aNULLGError*.The argument will be left initialized to NULLby the method if there are no errors.In case of error, the argument will be set to a newly allocated GError; the caller will take ownership of the data, and be responsible for freeing it.