diff options
author | Steve Bennett <steveb@workware.net.au> | 2017-09-15 11:53:03 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2017-09-15 12:11:33 +1000 |
commit | 93af9c4cfbf383f5cf146a95711008dcb052b278 (patch) | |
tree | dd85e44cbbc1f46b29b20e1fcd29e0a058b68ab0 /jim.h | |
parent | 0d3a4d11d6242e482df3896f0b28ca9bbc8f538a (diff) | |
download | jimtcl-93af9c4cfbf383f5cf146a95711008dcb052b278.zip jimtcl-93af9c4cfbf383f5cf146a95711008dcb052b278.tar.gz jimtcl-93af9c4cfbf383f5cf146a95711008dcb052b278.tar.bz2 |
history: Add autocompletion support
With 'history completion <cmd>'
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
@@ -880,7 +880,8 @@ JIM_EXPORT void Jim_MakeErrorMessage (Jim_Interp *interp); 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(const char *prompt); +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_HistoryAdd(const char *line); JIM_EXPORT void Jim_HistoryShow(void); |