aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-07-17 11:15:10 +1000
committerSteve Bennett <steveb@workware.net.au>2023-07-04 10:08:32 +1000
commit92aec20d365d699d001b767659b2b3aa4d90bd18 (patch)
treef01c5a53d4b3ac78a7649c48cbae952980703b78 /jim.h
parenta6f101248ee409e1b952fa9560f409127701e9c7 (diff)
downloadjimtcl-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/jim.h b/jim.h
index 1c4b5c8..98d21e2 100644
--- a/jim.h
+++ b/jim.h
@@ -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);