mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 11:34:05 +08:00
update files
This commit is contained in:
parent
58b20ac461
commit
dfc881fcb4
@ -181,6 +181,8 @@ module.exports = Vue.component('app-main', {
|
|||||||
context.expandCommand = trigger && trigger.contains(target);
|
context.expandCommand = trigger && trigger.contains(target);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
var timer;
|
||||||
|
|
||||||
ipc.on('emulator', function (event, type, project, data){
|
ipc.on('emulator', function (event, type, project, data){
|
||||||
var xtermNode = context.$els.terminal;
|
var xtermNode = context.$els.terminal;
|
||||||
var runtime = window.AppRuntime[project.name];
|
var runtime = window.AppRuntime[project.name];
|
||||||
@ -188,7 +190,10 @@ module.exports = Vue.component('app-main', {
|
|||||||
if (runtime) {
|
if (runtime) {
|
||||||
xtermNode.innerHTML = '';
|
xtermNode.innerHTML = '';
|
||||||
runtime.xterm.write(data + '');
|
runtime.xterm.write(data + '');
|
||||||
xtermNode.appendChild(runtime.xterm.screen);
|
if(runtime.xterm.isFu)
|
||||||
|
setTimeout(function (){
|
||||||
|
xtermNode.appendChild(runtime.xterm.screen);
|
||||||
|
}, 1);
|
||||||
} else {
|
} else {
|
||||||
event.sender.send('emulator', project, 'stop');
|
event.sender.send('emulator', project, 'stop');
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,14 @@
|
|||||||
module.exports = function (Terminal){
|
module.exports = function (Terminal){
|
||||||
Terminal.focus = null;
|
Terminal.focus = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* isFocused
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
Terminal.prototype.isFocused = function (){
|
||||||
|
return Terminal.focus === this;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* focus
|
* focus
|
||||||
*/
|
*/
|
||||||
@ -17,6 +25,8 @@ module.exports = function (Terminal){
|
|||||||
Terminal.focus.blur();
|
Terminal.focus.blur();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Terminal.focus = this;
|
||||||
|
|
||||||
if (this.cursor) {
|
if (this.cursor) {
|
||||||
this.showCursor();
|
this.showCursor();
|
||||||
}
|
}
|
||||||
@ -24,8 +34,6 @@ module.exports = function (Terminal){
|
|||||||
if (this.cursorBlink) {
|
if (this.cursorBlink) {
|
||||||
this.startBlink();
|
this.startBlink();
|
||||||
}
|
}
|
||||||
|
|
||||||
Terminal.focus = this;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user