X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=jscl.html;h=e130ef9c642065374e0649dd49724223f5c560ad;hb=67813c3c34958f6ab1fe1beb83266b8b87d01d9c;hp=0fde9fc772adda017f31a772aa9c60e4cb361c51;hpb=b4f81895de2164b4f362c3050b74a45c1f5069e2;p=jscl.git diff --git a/jscl.html b/jscl.html index 0fde9fc..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; @@ -77,26 +79,29 @@ var startPrompt = function () { // Start the prompt with history enabled. - jqconsole.Write(xstring(lisp.evalString(pv, 1, make_lisp_string('(CL:PACKAGE-NAME CL:*PACKAGE*)'))) + '> ', 'jqconsole-prompt'); + jqconsole.Write(lisp.evalString('(CL:PACKAGE-NAME CL:*PACKAGE*)') + '> ', 'jqconsole-prompt'); jqconsole.Prompt(true, function (input) { // Output input with the class jqconsole-return. if (input[0] != ','){ try { - var vs = lisp.evalInput(mv, 1, make_lisp_string(input)); - for (var i=0; i