|
@@ -12,6 +12,7 @@
|
|
import '@fortawesome/fontawesome-free/css/all.min.css'
|
|
import '@fortawesome/fontawesome-free/css/all.min.css'
|
|
import { networkInterface, startLogin } from '$lib/network.js'
|
|
import { networkInterface, startLogin } from '$lib/network.js'
|
|
import { cpuActivity, diskActivity } from '$lib/activities.js'
|
|
import { cpuActivity, diskActivity } from '$lib/activities.js'
|
|
|
|
+ import { introMessage } from '$lib/messages.js'
|
|
|
|
|
|
var term = new Terminal({cursorBlink:true, convertEol:true, fontFamily:"monospace", fontWeight: 400, fontWeightBold: 700});
|
|
var term = new Terminal({cursorBlink:true, convertEol:true, fontFamily:"monospace", fontWeight: 400, fontWeightBold: 700});
|
|
var cx = null;
|
|
var cx = null;
|
|
@@ -31,6 +32,11 @@
|
|
for(var i=0;i<str.length;i++)
|
|
for(var i=0;i<str.length;i++)
|
|
cxReadFunc(str.charCodeAt(i));
|
|
cxReadFunc(str.charCodeAt(i));
|
|
}
|
|
}
|
|
|
|
+ function printMessage(msg)
|
|
|
|
+ {
|
|
|
|
+ for(var i=0;i<msg.length;i++)
|
|
|
|
+ term.write(msg[i] + "\n");
|
|
|
|
+ }
|
|
function hddCallback(state)
|
|
function hddCallback(state)
|
|
{
|
|
{
|
|
diskActivity.set(state != "ready");
|
|
diskActivity.set(state != "ready");
|
|
@@ -57,6 +63,7 @@
|
|
consoleDiv.addEventListener("dragenter", preventDefaults, false);
|
|
consoleDiv.addEventListener("dragenter", preventDefaults, false);
|
|
consoleDiv.addEventListener("dragleave", preventDefaults, false);
|
|
consoleDiv.addEventListener("dragleave", preventDefaults, false);
|
|
consoleDiv.addEventListener("drop", preventDefaults, false);
|
|
consoleDiv.addEventListener("drop", preventDefaults, false);
|
|
|
|
+ printMessage(introMessage);
|
|
initCheerpX();
|
|
initCheerpX();
|
|
}
|
|
}
|
|
async function initCheerpX()
|
|
async function initCheerpX()
|