{I" class:ETI"ProcessedAsset;FI"logical_path;TI"web_console.js;FI" pathname;TI"P/Users/genadi/Development/web-console/lib/assets/javascripts/web_console.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+EĞRI" length;TipI" digest;TI"%d1bf767d360d84b2a9688a8ecd633c6e;FI" source;TI"p ;(function(BaseTerminal) { // Expose the main WebConsole namespace. var WebConsole = this.WebConsole = {}; // Follow term.js example and expose inherits and EventEmitter. var inherits = WebConsole.inherits = BaseTerminal.inherits; var EventEmitter = WebConsole.EventEmitter = BaseTerminal.EventEmitter; var Terminal = WebConsole.Terminal = function(options) { if (typeof options === 'number') { return BaseTerminal.apply(this, arguments); } BaseTerminal.call(this, options || (options = {})); this.open(); if (!(options.rows || options.cols) || !options.geometry) { this.fitScreen(); } }; // Make WebConsole.Terminal inherit from BaseTerminal (term.js). inherits(Terminal, BaseTerminal); Terminal.prototype.fitScreen = function() { var width = Math.floor(this.element.clientWidth / this.cols); var height = Math.floor(this.element.clientHeight / this.rows); var rows = Math.floor(window.innerHeight / height); var cols = Math.floor(this.parent.clientWidth / width); this.resize(cols, rows); return [cols, rows]; }; }).call(this, Terminal); ;TI"dependency_digest;TI"%d95bd52b4a8042877d0ceb787c5b4d1c;FI"required_paths;T[I"L/Users/genadi/Development/web-console/vendor/assets/javascripts/term.js;FI"P/Users/genadi/Development/web-console/lib/assets/javascripts/web_console.js;FI"dependency_paths;T[{I" path;TI"P/Users/genadi/Development/web-console/lib/assets/javascripts/web_console.js;FI" mtime;TI"2013-12-13T19:33:55+02:00;TI" digest;TI"%353eb1cce387e058e857d82c95745856;F{I" path;TI"L/Users/genadi/Development/web-console/vendor/assets/javascripts/term.js;FI" mtime;TI"2013-12-13T19:33:55+02:00;TI" digest;TI"%22f8da6d44f088fa7e9e840efd2ff53a;FI" _version;TI"%ac1cd7cf9811f9938e2b8937c60a24e6;F