diff --git a/static/js/components/app-main/index.js b/static/js/components/app-main/index.js index 3d88667..4e4e05f 100644 --- a/static/js/components/app-main/index.js +++ b/static/js/components/app-main/index.js @@ -10,11 +10,6 @@ var util = require('../../util'); var Vue = require('../../vue/vue'); var Terminal = require('../../terminal'); -Terminal.defaultColors = { - bg: 'transparent', - fg: 'inherit' -}; - const EMPTYPROJECT = { name: '', path: '', @@ -85,8 +80,6 @@ module.exports = Vue.component('app-main', { }, exec: function (name, command){ - console.log('run %s: %s', name, command); - var xtermNode = this.$els.terminal; var runtime = window.AppRuntime[this.project.name]; @@ -122,7 +115,11 @@ module.exports = Vue.component('app-main', { ].join('\r\n'); if (!runtime) { - var xterm = new Terminal(); + var xterm = new Terminal({ + debug: true, + bgColor: 'transparent', + fgColor: 'inherit' + }); xterm.open(); xtermNode.appendChild(xterm.element); diff --git a/static/js/terminal/lib/debug.js b/static/js/terminal/lib/debug.js index 46295c9..1893b9b 100644 --- a/static/js/terminal/lib/debug.js +++ b/static/js/terminal/lib/debug.js @@ -6,7 +6,7 @@ module.exports = function (Terminal){ Terminal.prototype.log = function (){ - if (!Terminal.debug) return; + if (!this.debug) return; if (!window.console || !window.console.log) return; @@ -16,7 +16,7 @@ module.exports = function (Terminal){ }; Terminal.prototype.error = function (){ - if (!Terminal.debug) return; + if (!this.debug) return; if (!window.console || !window.console.error) return;