From: David Vázquez Date: Sun, 2 Jun 2013 08:32:02 +0000 (+0100) Subject: Persistent history X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=b77b6a4908af064451bf5292c0a3a5aa65581dfe;p=jscl.git Persistent history --- diff --git a/jscl.html b/jscl.html index 47b4efb..e130ef9 100644 --- a/jscl.html +++ b/jscl.html @@ -69,7 +69,9 @@ $(function () { var jqconsole = $('#console').jqconsole('Welcome to JSCL!\n\n', ''); jqconsole.RegisterMatching('(', ')', 'parents'); - + if (localStorage.getItem("jqhist")) + jqconsole.SetHistory(JSON.parse(localStorage.getItem("jqhist"))); + lisp.write = function(str){ jqconsole.Write(xstring(str), 'jqconsole-output', false); return str; @@ -85,6 +87,7 @@ var vs = lisp.evalInput(input); // for (var i=0; i