aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2021-01-21 07:14:17 +1000
committerSteve Bennett <steveb@workware.net.au>2021-01-23 12:49:12 +1000
commit43e71ad476f4c96815baf973f27e4c8006ebb33f (patch)
tree04fc8a0ed069e86c2c721a0580e240024215aa33 /jim.h
parent8f3e1ce80995c42a200db98fbfe02e4a60771c26 (diff)
downloadjimtcl-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/jim.h b/jim.h
index 8c59876..3021216 100644
--- a/jim.h
+++ b/jim.h
@@ -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);