All tuning is performed via compile-time #defines; no runtime configuration is provided. A default can be overridden by defining the corresponding macro before including the header, or by passing -D... to the compiler.
Maximum number of characters that fit on the command line (excluding the null terminator). The full buffer is embedded in tcli_t, so this value directly affects the struct size.
TCLI_MAX_TOKENS
12
Maximum number of whitespace-separated tokens produced by the tokenizer. Lines with more tokens are rejected before the executor is invoked.
Size of the buffer used to coalesce tcli_out writes before they reach the output callback. Setting it to 0 disables buffering; every byte is forwarded to the callback immediately.
Setting any of these to an empty string removes the corresponding color or formatting from the help output, e.g. for log capture or terminals that do not render escape sequences.
The tab-completion display has two further format macros:
Macro
Default
Rendered
Effect
TCLI_MATCH_FORMAT
TCLI_COLOR_BRIGHT_BLACK
Sample
Format of the common-prefix match hint shown while completing.
TCLI_SELECTION_FORMAT
(TCLI_BG_COLOR_WHITE TCLI_COLOR_BLACK)
Sample
Format of the currently-selected candidate when cycling through matches.
The library version is available at compile time through macros defined in tcli.h: TCLI_VERSION_MAJOR, TCLI_VERSION_MINOR, TCLI_VERSION_PATCH, and TCLI_VERSION_STR.