Skip to content

Struct SYN_CLI

ClassList > SYN_CLI

CLI instance — command table, line buffer, I/O, and history.

  • #include <syn_cli.h>

Public Attributes

Type Name
size_t command_count
const SYN_CLI_Command * commands
bool echo
uint8_t escape_state
char line_buf
size_t line_pos
const char * prompt
bool prompt_visible

Public Attributes Documentation

variable command_count

size_t SYN_CLI::command_count;

Number of commands


variable commands

const SYN_CLI_Command* SYN_CLI::commands;

Registered command array


variable echo

bool SYN_CLI::echo;

Echo enabled


variable escape_state

uint8_t SYN_CLI::escape_state;

ANSI escape sequence state


variable line_buf

char SYN_CLI::line_buf[SYN_CLI_LINE_BUF_SIZE];

Input line buffer


variable line_pos

size_t SYN_CLI::line_pos;

Current cursor position


variable prompt

const char* SYN_CLI::prompt;

Prompt string


variable prompt_visible

bool SYN_CLI::prompt_visible;

Prompt currently visible on screen



The documentation for this class was generated from the following file src/syntropic/cli/syn_cli.h