Function esp_idf_hal::sys::esp_console_get_hint
source ยท pub unsafe extern "C" fn esp_console_get_hint(
buf: *const i8,
color: *mut i32,
bold: *mut i32,
) -> *const i8
Expand description
@brief Callback which provides command hints for linenoise library
When using linenoise for line editing, hints support can be enabled as follows:
linenoiseSetHintsCallback((linenoiseHintsCallback*) &esp_console_get_hint);
The extra cast is needed because linenoiseHintsCallback is defined as returning a char* instead of const char*.
@param buf line typed by the user @param[out] color ANSI color code to be used when displaying the hint @param[out] bold set to 1 if hint has to be displayed in bold @return string containing the hint text. This string is persistent and should not be freed (i.e. linenoiseSetFreeHintsCallback should not be used).