5 /* The console container element */
6 body { background-color: black; font-size: 16px; font-family: Courier; overflow: hidden; padding: 0 0 0 0;}
13 background-color:black;
15 /* The inner console element. */
21 background-color: gray;
23 /* The cursor color when the console looses focus. */
24 .jqconsole-blurred .jqconsole-cursor {
25 background-color: #666;
27 /* The current prompt text color */
31 /* The command history */
32 .jqconsole-old-prompt {
36 /* The text color when in input mode. */
40 /* Previously entered input. */
41 .jqconsole-old-input {
45 /* The text color of the output. */
46 .jqconsole-output, .jqconsole-header {
56 <div id="console"></div>
57 <script src="lispstrack.js" type="text/javascript"></script>
58 <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
59 <script src="jqconsole.min.js" type="text/javascript" charset="utf-8"></script>
62 var jqconsole = $('#console').jqconsole('Welcome to Lisptrack!\n\n', '> ');
63 jqconsole.RegisterMatching('(', ')', 'parents');
65 var startPrompt = function () {
66 // Start the prompt with history enabled.
67 jqconsole.Prompt(true, function (input) {
68 // Output input with the class jqconsole-output.
71 jqconsole.Write(JSON.stringify(lisp.evalString(input)) + '\n', 'jqconsole-output');
73 jqconsole.Write('ERROR: ' + error + '\n', 'jqconsole-error');
76 jqconsole.Write(JSON.stringify(lisp.compileString(input.slice(1))) + '\n', 'jqconsole-output');
78 // Restart the prompt.
82 lisp.read(input[0]==','? input.slice(1): input);