Alpine: Prevent duplicated reporting of display activation

This commit is contained in:
Alessandro Pignotti 2024-10-15 16:47:56 +02:00
parent 9962e2ce43
commit d28c611806

View file

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