mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 20:24:04 +08:00
update files
This commit is contained in:
parent
e8bbc3ebd5
commit
bc67b1c0d1
@ -31,5 +31,5 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="ui-project-terminal"></div>
|
<div v-el:terminal class="ui-project-terminal"></div>
|
||||||
</div>
|
</div>
|
@ -8,6 +8,7 @@ var fs = require('fs');
|
|||||||
var path = require('path');
|
var path = require('path');
|
||||||
var util = require('../../util');
|
var util = require('../../util');
|
||||||
var Vue = require('../../vue/vue');
|
var Vue = require('../../vue/vue');
|
||||||
|
var Terminal = require('../../terminal/termlib');
|
||||||
|
|
||||||
const EMPTYPROJECT = {
|
const EMPTYPROJECT = {
|
||||||
name: '',
|
name: '',
|
||||||
@ -78,6 +79,15 @@ module.exports = Vue.component('app-main', {
|
|||||||
console.log('run %s: %s', name, command);
|
console.log('run %s: %s', name, command);
|
||||||
|
|
||||||
if (!window.AppRuntime[this.project.name]) {
|
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] = {
|
window.AppRuntime[this.project.name] = {
|
||||||
name: name,
|
name: name,
|
||||||
command: command,
|
command: command,
|
||||||
|
@ -1821,7 +1821,7 @@ Terminal.prototype = {
|
|||||||
var termOffset = 2 + this.conf.frameWidth;
|
var termOffset = 2 + this.conf.frameWidth;
|
||||||
|
|
||||||
if (this.globals.hasSubDivs) {
|
if (this.globals.hasSubDivs) {
|
||||||
for (var r = 0; r < this.conf.rows; r++) {
|
for (r = 0; r < this.conf.rows; r++) {
|
||||||
s += '<div id="' + divPrefix + r + '" style="position:absolute; top:'
|
s += '<div id="' + divPrefix + r + '" style="position:absolute; top:'
|
||||||
+ (termOffset + r * this.conf.rowHeight) + 'px; left: ' + termOffset + 'px;" class="'
|
+ (termOffset + r * this.conf.rowHeight) + 'px; left: ' + termOffset + 'px;" class="'
|
||||||
+ this.conf.fontClass + '"><\/div>\n';
|
+ this.conf.fontClass + '"><\/div>\n';
|
||||||
@ -3299,10 +3299,5 @@ Terminal.prototype = {
|
|||||||
|
|
||||||
// initialize global data
|
// initialize global data
|
||||||
Terminal.prototype.globals._initGlobals();
|
Terminal.prototype.globals._initGlobals();
|
||||||
// global entities for backward compatibility with termlib 1.x applications
|
|
||||||
var TerminalDefaults = Terminal.prototype.Defaults;
|
|
||||||
var termDefaultHandler = Terminal.prototype.defaultHandler;
|
|
||||||
var TermGlobals = Terminal.prototype.globals;
|
|
||||||
var termKey = Terminal.prototype.globals.termKey;
|
|
||||||
var termDomKeyRef = Terminal.prototype.globals.termDomKeyRef;
|
|
||||||
// eof
|
// eof
|
||||||
|
module.exports = Terminal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user