3 // Copyright (c) 2009 Kyle Banker
\r
4 // Licensed under the MIT Licence.
\r
5 // http://www.opensource.org/licenses/mit-license.php
\r
7 var DefaultInputHtml = function(stack) {
\r
10 linePrompt += "<span class='prompt'> ></span>";
\r
13 for(var i=0; i <= stack; i++) {
\r
14 linePrompt += "<span class='prompt'>.</span>";
\r
17 return "<div class='terminal_line'>" +
\r
19 "<input type='text' class='readLine active' />" +
\r
23 var EnterKeyCode = 13;
\r
24 var UpArrowKeyCode = 38;
\r
25 var DownArrowKeyCode = 40;
\r
27 var PTAG = function(str) {
\r
28 return '<pre class="terminal_help">' + str + '</pre>';
\r
31 var BR = function() {
\r
35 var JavascriptKeywords = ['abstract', 'boolean', 'break', 'byte', 'case', 'catch', 'char', 'class', 'const', 'continue', 'debugger', 'default', 'delete', 'do', 'double', 'else', 'enum', 'export', 'extends', 'false', 'final', 'finally', 'float', 'for', 'function', 'goto', 'if', 'implements', 'import', 'in', 'instanceof', 'int', 'interface', 'long', 'native', 'new', 'null', 'package', 'private', 'protected', 'public', 'return', 'short', 'static', 'super', 'switch', 'synchronized', 'this', 'throw', 'throws', 'transient', 'true', 'try', 'typeof', 'var', 'void', 'volatile', 'while', 'with', 'alert', 'date', 'eval'];
\r
37 var JavascriptClassNames = ['Array', 'String', 'Object']
\r
39 var MongoKeywords = ['help','tutorial','next','back','t0','t1','t2','t3','t4'];
\r