diff options
| author | Joel Martin <github@martintribe.org> | 2014-04-27 16:55:31 -0500 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2014-04-27 16:55:31 -0500 |
| commit | b58698b257fb6552e053cd245d63a140d3f7a478 (patch) | |
| tree | 2310e9c259ee82534d5336d1c4beffd270030a51 /mal.html | |
| parent | a9993e0a683bc56ef091762e192fdb47676be82b (diff) | |
| download | mal-b58698b257fb6552e053cd245d63a140d3f7a478.tar.gz mal-b58698b257fb6552e053cd245d63a140d3f7a478.zip | |
JS: add localStorage history load/save. Slurp using sync XHR.
Diffstat (limited to 'mal.html')
| -rw-r--r-- | mal.html | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -208,6 +208,8 @@ this software. rep("(println (str \"Mal [\" *host-language* \"]\"))"); + jq_load_history(jqconsole); + // Abort prompt on Ctrl+C. jqconsole.RegisterShortcut('C', function() { jqconsole.AbortPrompt(); @@ -240,6 +242,7 @@ this software. jqconsole.Write(exc + '\n', 'jqconsole-error'); } } + jq_save_history(jqconsole); } jqconsole.Prompt(true, handler); /* |
