18#ifndef TR_CLI_MAX_LINE
22#define TR_CLI_MAX_LINE 120
25#ifndef TR_CLI_HISTORY_LEN
30#define TR_CLI_HISTORY_LEN 1000
33#ifndef TR_CLI_MAX_ARGC
37#define TR_CLI_MAX_ARGC 16
44#define TR_CLI_PROMPT "trident> "
47#ifndef TR_CLI_MAX_PROMPT_LEN
51#define TR_CLI_MAX_PROMPT_LEN 10
54#ifndef TR_CLI_SERIAL_XLATE
59#define TR_CLI_SERIAL_XLATE 1
136 void ( *put_char )(
char ch));
int len
Definition tr_cli.h:97
bool have_csi
Definition tr_cli.h:120
char * argv[TR_CLI_MAX_ARGC]
Definition tr_cli.h:127
void * cb_data
Definition tr_cli.h:117
bool have_escape
Definition tr_cli.h:119
char buffer[TR_CLI_MAX_LINE]
Definition tr_cli.h:75
void(* put_char)(char ch)
Definition tr_cli.h:112
bool done
Definition tr_cli.h:107
char prompt[TR_CLI_MAX_PROMPT_LEN]
Definition tr_cli.h:129
int cursor
Definition tr_cli.h:102
int counter
Definition tr_cli.h:125
bool tr_cli_insert_char(char ch)
#define TR_CLI_MAX_PROMPT_LEN
Definition tr_cli.h:51
void tr_cli_init(const char *prompt, void(*put_char)(char ch))
int tr_cli_argc(char ***argv)
#define TR_CLI_HISTORY_LEN
Definition tr_cli.h:30
void tr_cli_common_printf(const char *pFormat,...)
const char * tr_cli_get_history(int history_pos)
const char * tr_cli_get_line(void)
#define TR_CLI_MAX_LINE
Definition tr_cli.h:22
#define TR_CLI_MAX_ARGC
Definition tr_cli.h:37
void tr_cli_char_received(char data)
code for buffering bytes to be sent to the CLI utility
common CLI utility for parsing incoming commands
A simple printf utility for debug prints and cli support. Required for remote CLI to function properl...