Structure which defines the current state of the CLI. More...
#include <tr_cli.h>
Data Fields | |
| char | buffer [TR_CLI_MAX_LINE] |
| Internal buffer. This should not be accessed directly, use the access functions below. | |
| int | len |
| Number of characters in buffer at the moment. | |
| int | cursor |
| Position of the cursor. | |
| bool | done |
| Have we just parsed a full line? | |
| void(* | put_char )(char ch) |
| Callback function to output a single character to the user. | |
| void * | cb_data |
| Data to provide to the put_char callback. | |
| bool | have_escape |
| Flag indicating if we have an escape sequence. | |
| bool | have_csi |
| Flag indicating if we have a CSI sequence. | |
| int | counter |
| Counter of the value for the CSI code. | |
| char * | argv [TR_CLI_MAX_ARGC] |
| Array of argument strings. | |
| char | prompt [TR_CLI_MAX_PROMPT_LEN] |
| CLI prompt string. | |
Structure which defines the current state of the CLI.
| char* tr_cli::argv[TR_CLI_MAX_ARGC] |
Array of argument strings.
| char tr_cli::buffer[TR_CLI_MAX_LINE] |
Internal buffer. This should not be accessed directly, use the access functions below.
| void* tr_cli::cb_data |
Data to provide to the put_char callback.
| int tr_cli::counter |
Counter of the value for the CSI code.
| int tr_cli::cursor |
Position of the cursor.
| bool tr_cli::done |
Have we just parsed a full line?
| bool tr_cli::have_csi |
Flag indicating if we have a CSI sequence.
| bool tr_cli::have_escape |
Flag indicating if we have an escape sequence.
| int tr_cli::len |
Number of characters in buffer at the moment.
| char tr_cli::prompt[TR_CLI_MAX_PROMPT_LEN] |
CLI prompt string.
| void(* tr_cli::put_char) (char ch) |
Callback function to output a single character to the user.