mirror of
https://github.com/sigmasternchen/Wish
synced 2025-03-15 15:38:54 +00:00
os name + kernel name
This commit is contained in:
parent
e562707d84
commit
2aab635bfb
2 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,7 @@ WshClass.prototype.tick = function() {
|
||||||
var stdin = this.files['stdin'];
|
var stdin = this.files['stdin'];
|
||||||
switch(this.state) {
|
switch(this.state) {
|
||||||
case 0:
|
case 0:
|
||||||
stdout.write("Welcome to WishOS 0.1 (WOSKernel 0.9)\n\n");
|
stdout.write("Welcome to " + OS_NAME + " (" + KERNEL + ")\n\n");
|
||||||
console.log("wsh: loading profile");
|
console.log("wsh: loading profile");
|
||||||
var prof = new File("/etc/profile.d/env.json");
|
var prof = new File("/etc/profile.d/env.json");
|
||||||
var array = JSON.parse(prof.read().replace(EOF, ""));
|
var array = JSON.parse(prof.read().replace(EOF, ""));
|
||||||
|
|
|
@ -42,6 +42,9 @@ const MODE_CREATE = 6;
|
||||||
// special chars
|
// special chars
|
||||||
const EOF = String.fromCharCode(26);
|
const EOF = String.fromCharCode(26);
|
||||||
|
|
||||||
|
const OS_NAME = "Wish OS V 0.1"; // Wish-Isn't-a-SHell Operating System
|
||||||
|
const KERNEL = "Wodka Kernel V 0.9"; // Wish Os Dedicated Kernel Alpha
|
||||||
|
|
||||||
var OS = function() {
|
var OS = function() {
|
||||||
}
|
}
|
||||||
OS.system;
|
OS.system;
|
||||||
|
@ -80,6 +83,7 @@ Kernel.machine = function() {
|
||||||
case 0:
|
case 0:
|
||||||
Emulator.Output.shiftKey = OS.staticShift;
|
Emulator.Output.shiftKey = OS.staticShift;
|
||||||
Emulator.output("\033[2J\033[0;0H" + OS.logo);
|
Emulator.output("\033[2J\033[0;0H" + OS.logo);
|
||||||
|
Kernel.wall("\ņbooting kernel: " + KERNEL + "...")
|
||||||
Kernel.msgOut("reseting kernel timer", true);
|
Kernel.msgOut("reseting kernel timer", true);
|
||||||
Kernel.time = 0;
|
Kernel.time = 0;
|
||||||
Kernel.msgOut("register main timer (100ms)", true); // pre
|
Kernel.msgOut("register main timer (100ms)", true); // pre
|
||||||
|
|
Loading…
Reference in a new issue