Commit 94eeafa0 authored by deuce's avatar deuce
Browse files

Added showhelp to the api (usefull for displaying text files)

parent e50f4293
......@@ -344,6 +344,14 @@ typedef struct {
/* Sets the current help index by source code file and line number. */
/****************************************************************************/
void (*sethelp)(int line, char* file);
#ifdef __unix__
/****************************************************************************/
/* Shows the current help text */
/****************************************************************************/
void (*showhelp)(void);
#endif
} uifcapi_t;
/****************************************************************************/
......
......@@ -173,6 +173,9 @@ int uifcinic(uifcapi_t* uifcapi)
api->list=ulist;
api->input=uinput;
api->sethelp=sethelp;
#ifdef __unix__
api->showhelp=help;
#endif
#if defined(LOCALE)
(void) setlocale(LC_ALL, "");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment