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;
20 /* The inner console element. */
26 background-color: gray;
28 /* The cursor color when the console looses focus. */
29 .jqconsole-blurred .jqconsole-cursor {
30 background-color: #666;
32 /* The current prompt text color */
36 /* The command history */
37 .jqconsole-old-prompt {
41 /* The text color when in input mode. */
45 /* Previously entered input. */
46 .jqconsole-old-input {
50 /* The text color of the output. */
51 .jqconsole-output, .jqconsole-header {
61 <div id="console"></div>
62 <script src="lispstrack.js" type="text/javascript"></script>
63 <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
64 <script src="jqconsole.min.js" type="text/javascript" charset="utf-8"></script>
67 var jqconsole = $('#console').jqconsole('Welcome to Lisptrack!\n\n', '> ');
68 jqconsole.RegisterMatching('(', ')', 'parents');
70 var startPrompt = function () {
71 // Start the prompt with history enabled.
72 jqconsole.Prompt(true, function (input) {
73 // Output input with the class jqconsole-output.
76 jqconsole.Write(lisp.print(lisp.evalString(input)) + '\n', 'jqconsole-output');
78 jqconsole.Write('ERROR: ' + error + '\n', 'jqconsole-error');
81 jqconsole.Write(lisp.compileString(input.slice(1)) + '\n', 'jqconsole-output');
83 // Restart the prompt.
87 lisp.read(input[0]==','? input.slice(1): input);