|
GATE
C/C++ Framework
|
process terminal management library More...
#include "gate/system/gate_system_api.h"#include "gate/gatetypes.h"#include "gate/streams.h"#include "gate/console.h"Macros | |
| #define | GATE_TERMINAL_FLAG_ECHO 0x0001 |
| #define | GATE_TERMINAL_FLAG_GETCTRL 0x0002 |
| #define | GATE_TERMINAL_FLAG_VT100 0x8000 |
Functions | |
| GATE_SYSTEM_API gate_terminal_t * | gate_terminal_console_get_current () |
| Returns a terminal interface object that covers the currently attached process terminal. | |
| GATE_SYSTEM_API gate_terminal_t * | gate_terminal_console_open (gate_enumint_t flags) |
| Opens a new terminal with specified settings and attaches it to the process. | |
| GATE_SYSTEM_API gate_terminal_t * | gate_terminal_virtual_create (gate_uint16_t columns, gate_uint16_t rows, gate_enumint_t flags, gate_terminal_read_char_t read_callback, void *read_param, gate_terminal_write_char_t write_callback, void *write_param) |
| Creates a virtual (in-memory) terminal independent from system or process. | |
process terminal management library
| #define GATE_TERMINAL_FLAG_ECHO 0x0001 |
entered keys are written on output device
| #define GATE_TERMINAL_FLAG_GETCTRL 0x0002 |
CTRL+key (like CTRL+C) are handled as keyboard input (and are not processed by system)
| #define GATE_TERMINAL_FLAG_VT100 0x8000 |
enables VT100 terminal features
| GATE_SYSTEM_API gate_terminal_t * gate_terminal_console_get_current | ( | ) |
Returns a terminal interface object that covers the currently attached process terminal.
| GATE_SYSTEM_API gate_terminal_t * gate_terminal_console_open | ( | gate_enumint_t | flags | ) |
Opens a new terminal with specified settings and attaches it to the process.
| [in] | flags | combination of GATE_TERMINAL_FLAG_* values |
| GATE_SYSTEM_API gate_terminal_t * gate_terminal_virtual_create | ( | gate_uint16_t | columns, |
| gate_uint16_t | rows, | ||
| gate_enumint_t | flags, | ||
| gate_terminal_read_char_t | read_callback, | ||
| void * | read_param, | ||
| gate_terminal_write_char_t | write_callback, | ||
| void * | write_param ) |
Creates a virtual (in-memory) terminal independent from system or process.
| [in] | columns | amount of cell columns in the new terminal |
| [in] | rows | amount of cell rows in the new terminal |
| [in] | flags | combination of GATE_TERMINAL_FLAG_* values |
| [in] | read_callback | callback function to be invoked when a read operation is performed |
| [in] | read_param | user parameter attached to each read_callback call |
| [in] | write_callback | callback function to be invoked when a write operation is performed |
| [in] | write_param | user parameter attached to each write_callback call |