diff options
author | Steve Bennett <steveb@workware.net.au> | 2021-01-21 07:14:17 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2021-01-23 12:49:12 +1000 |
commit | 43e71ad476f4c96815baf973f27e4c8006ebb33f (patch) | |
tree | 04fc8a0ed069e86c2c721a0580e240024215aa33 /jim.h | |
parent | 8f3e1ce80995c42a200db98fbfe02e4a60771c26 (diff) | |
download | jimtcl-43e71ad476f4c96815baf973f27e4c8006ebb33f.zip jimtcl-43e71ad476f4c96815baf973f27e4c8006ebb33f.tar.gz jimtcl-43e71ad476f4c96815baf973f27e4c8006ebb33f.tar.bz2 |
history: Add support for history keep
Fixes #191
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Reported-by: D. Bohdan <dbohdan@dbohdan.com>
Diffstat (limited to 'jim.h')
-rw-r--r-- | jim.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -918,6 +918,8 @@ 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); +JIM_EXPORT void Jim_HistorySetMaxLen(int length); +JIM_EXPORT int Jim_HistoryGetMaxLen(void); /* Misc */ JIM_EXPORT int Jim_InitStaticExtensions(Jim_Interp *interp); |