X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=jscl.html;h=e130ef9c642065374e0649dd49724223f5c560ad;hb=546ad39c2c44148207a1fde5b45957f2945ad1cf;hp=656af67d9c80b6ca102a359bcdc5d689ef2cd287;hpb=54de4d4abbeb7f99e5f5702ad93e815cae7a0b3b;p=jscl.git diff --git a/jscl.html b/jscl.html index 656af67..e130ef9 100644 --- a/jscl.html +++ b/jscl.html @@ -69,34 +69,39 @@ $(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(str, 'jqconsole-output', false); + jqconsole.Write(xstring(str), 'jqconsole-output', false); return str; } var startPrompt = function () { // Start the prompt with history enabled. - jqconsole.Write(lisp.evalString(pv, '(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, input); - for (var i=0; i