From b77b6a4908af064451bf5292c0a3a5aa65581dfe Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20V=C3=A1zquez?= Date: Sun, 2 Jun 2013 09:32:02 +0100 Subject: [PATCH] Persistent history --- jscl.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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