diff --git a/static/js/components/app-main/app-main.html b/static/js/components/app-main/app-main.html index b755f43..ee7437b 100644 --- a/static/js/components/app-main/app-main.html +++ b/static/js/components/app-main/app-main.html @@ -31,5 +31,5 @@ -
+ \ No newline at end of file diff --git a/static/js/components/app-main/index.js b/static/js/components/app-main/index.js index 73abe62..5cd1d7c 100644 --- a/static/js/components/app-main/index.js +++ b/static/js/components/app-main/index.js @@ -8,6 +8,7 @@ var fs = require('fs'); var path = require('path'); var util = require('../../util'); var Vue = require('../../vue/vue'); +var Terminal = require('../../terminal/termlib'); const EMPTYPROJECT = { name: '', @@ -78,6 +79,15 @@ module.exports = Vue.component('app-main', { console.log('run %s: %s', name, command); if (!window.AppRuntime[this.project.name]) { + var xterm = new Terminal({ + x: 220, + y: 70, + termDiv: this.$els.terminal + }); + + xterm.open(); + xterm.write('aasdsad'); + window.AppRuntime[this.project.name] = { name: name, command: command, diff --git a/static/js/terminal/termlib.js b/static/js/terminal/termlib.js index f41edf9..366fd0f 100644 --- a/static/js/terminal/termlib.js +++ b/static/js/terminal/termlib.js @@ -1821,7 +1821,7 @@ Terminal.prototype = { var termOffset = 2 + this.conf.frameWidth; if (this.globals.hasSubDivs) { - for (var r = 0; r < this.conf.rows; r++) { + for (r = 0; r < this.conf.rows; r++) { s += '