{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+Ê|tTI" length;TipI" digest;TI"%a2c10d9f0ef7e33fc47a7e6890134404;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"%1d368f25bd0acd5f7153f733f94fd995;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-11-25T14:57:46+02:00;TI" digest;TI"%b30380998cbb95249f4e2c0e1cc1b4c6;F{@I"L/Users/genadi/Development/web-console/vendor/assets/javascripts/term.js;F@ I"2014-11-25T14:57:46+02:00;T@"I"%dbc2ba0a7ddae8919390bb146a7374d8;FI" _version;TI"%312c4d59a332d735e846bcf4bc07a9b3;F