diff options
author | Steve Bennett <steveb@workware.net.au> | 2020-07-17 11:15:10 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-07-04 10:08:32 +1000 |
commit | 92aec20d365d699d001b767659b2b3aa4d90bd18 (patch) | |
tree | f01c5a53d4b3ac78a7649c48cbae952980703b78 /jim.h | |
parent | a6f101248ee409e1b952fa9560f409127701e9c7 (diff) | |
download | jimtcl-92aec20d365d699d001b767659b2b3aa4d90bd18.zip jimtcl-92aec20d365d699d001b767659b2b3aa4d90bd18.tar.gz jimtcl-92aec20d365d699d001b767659b2b3aa4d90bd18.tar.bz2 |
interactive: enable hint support
And add a default implementation of tcl::stdhint to add
hinting for some built-in commands.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.h')
-rw-r--r-- | jim.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -951,7 +951,8 @@ JIM_EXPORT int Jim_InteractivePrompt (Jim_Interp *interp); JIM_EXPORT void Jim_HistoryLoad(const char *filename); JIM_EXPORT void Jim_HistorySave(const char *filename); JIM_EXPORT char *Jim_HistoryGetline(Jim_Interp *interp, const char *prompt); -JIM_EXPORT void Jim_HistorySetCompletion(Jim_Interp *interp, Jim_Obj *commandObj); +JIM_EXPORT void Jim_HistorySetCompletion(Jim_Interp *interp, Jim_Obj *completionCommandObj); +JIM_EXPORT void Jim_HistorySetHints(Jim_Interp *interp, Jim_Obj *hintsCommandObj); JIM_EXPORT void Jim_HistoryAdd(const char *line); JIM_EXPORT void Jim_HistoryShow(void); JIM_EXPORT void Jim_HistorySetMaxLen(int length); |