|
@@ -25,6 +25,7 @@
|
|
term.loadAddon(linkAddon);
|
|
term.loadAddon(linkAddon);
|
|
var cxReadFunc = null;
|
|
var cxReadFunc = null;
|
|
var processCount = 0;
|
|
var processCount = 0;
|
|
|
|
+ var curVT = 0;
|
|
function writeData(buf, vt)
|
|
function writeData(buf, vt)
|
|
{
|
|
{
|
|
if(vt != 1)
|
|
if(vt != 1)
|
|
@@ -75,6 +76,9 @@
|
|
}
|
|
}
|
|
function handleActivateConsole(vt)
|
|
function handleActivateConsole(vt)
|
|
{
|
|
{
|
|
|
|
+ if(curVT == vt)
|
|
|
|
+ return;
|
|
|
|
+ curVT = vt;
|
|
if(vt != 7)
|
|
if(vt != 7)
|
|
return;
|
|
return;
|
|
// Raise the display to the foreground
|
|
// Raise the display to the foreground
|