update files

This commit is contained in:
nuintun
2015-11-25 11:41:48 +08:00
parent e9e39f1eb4
commit 9bef05d523
2 changed files with 7 additions and 10 deletions

View File

@@ -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);