{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+ùjîSI" length;TipI" digest;TI"%9dc3ee268b1814a8aaaa90cc1e030e78;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"%e41db139a69895044caafc865ba959d0;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"2014-08-15T23:18:01+03:00;TI" digest;TI"%1b573c48c8cccc41964a1d7048f41d8f;F{@I"L/Users/genadi/Development/web-console/vendor/assets/javascripts/term.js;F@ I"2014-08-16T18:55:47+03:00;T@"I"%eb94a57fcf1659e911b5b393eb9313f2;FI" _version;TI"%1d4ceeee8fc386afc9292795d0cf77f8;F