X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=jscl.html;h=e130ef9c642065374e0649dd49724223f5c560ad;hb=de701a40c1373c259cee62a295dafd4ab04ceba5;hp=3cd13303ff2e758285eb0c9acf8b497bb04bff83;hpb=fce50c8d6de70e78e67e14c97acc27a0f145d665;p=jscl.git diff --git a/jscl.html b/jscl.html index 3cd1330..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, 1, '(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, input); - for (var i=0; i