From 6055ef45a39b62bffa5f4c194e5d62a177c3b9df Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sat, 14 Nov 2009 13:35:41 +0100 Subject: Added screenshots and a grub entry for the GOL simulator. --- Grub-menu.cfg | 7 +++++++ Media/Screenshots/2009-11-14-132609_728x426_scrot.png | Bin 0 -> 13007 bytes Media/Screenshots/2009-11-14-132628_728x426_scrot.png | Bin 0 -> 21887 bytes Media/Screenshots/2009-11-14-132648_728x426_scrot.png | Bin 0 -> 22952 bytes Source/Kernel/Config.h | 11 ++++------- Source/Kernel/Core/Sys.ns.cpp | 2 +- Source/Kernel/Core/kmain.wtf.cpp | 4 ++-- Source/Kernel/Shell/KernelShell.class.cpp | 8 ++++---- 8 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 Media/Screenshots/2009-11-14-132609_728x426_scrot.png create mode 100644 Media/Screenshots/2009-11-14-132628_728x426_scrot.png create mode 100644 Media/Screenshots/2009-11-14-132648_728x426_scrot.png diff --git a/Grub-menu.cfg b/Grub-menu.cfg index bf06532..450212a 100644 --- a/Grub-menu.cfg +++ b/Grub-menu.cfg @@ -1,3 +1,5 @@ +default 2 + title The Melon Operating System root (fd0) kernel /Melon.ke @@ -12,3 +14,8 @@ title Melon without init root (fd0) kernel /Melon.ke init: module /Init.rfs initrd / 128K + +title Game of life simulator +root (fd0) +kernel /Melon.ke init:/Applications/Demos/GOL.app +module /Init.rfs initrd / 128K diff --git a/Media/Screenshots/2009-11-14-132609_728x426_scrot.png b/Media/Screenshots/2009-11-14-132609_728x426_scrot.png new file mode 100644 index 0000000..607575a Binary files /dev/null and b/Media/Screenshots/2009-11-14-132609_728x426_scrot.png differ diff --git a/Media/Screenshots/2009-11-14-132628_728x426_scrot.png b/Media/Screenshots/2009-11-14-132628_728x426_scrot.png new file mode 100644 index 0000000..d4c6ff2 Binary files /dev/null and b/Media/Screenshots/2009-11-14-132628_728x426_scrot.png differ diff --git a/Media/Screenshots/2009-11-14-132648_728x426_scrot.png b/Media/Screenshots/2009-11-14-132648_728x426_scrot.png new file mode 100644 index 0000000..11a3a7f Binary files /dev/null and b/Media/Screenshots/2009-11-14-132648_728x426_scrot.png differ diff --git a/Source/Kernel/Config.h b/Source/Kernel/Config.h index 149f699..009b133 100644 --- a/Source/Kernel/Config.h +++ b/Source/Kernel/Config.h @@ -8,13 +8,10 @@ #define TXTLOGO_BGCOLOR 0 #define KVT_FGCOLOR 7 #define KVT_BGCOLOR 0 -#define KVT_OKCOLOR 2 -#define KVT_BLECOLOR 4 //BLE = Boot Log Entry -#define KVT_LIGHTCOLOR 8 +#define KVT_LIGHTCOLOR 6 +#define KVT_ENTRYCOLOR 15 -#define SHELL_FGCOLOR 7 -#define SHELL_BGCOLOR 0 -#define SHELL_LIGHTCOLOR 6 -#define SHELL_ENTRYCOLOR 15 +#define SHELL_FGCOLOR 0 +#define SHELL_BGCOLOR 7 #endif diff --git a/Source/Kernel/Core/Sys.ns.cpp b/Source/Kernel/Core/Sys.ns.cpp index 5d4a1ab..1b59f7f 100644 --- a/Source/Kernel/Core/Sys.ns.cpp +++ b/Source/Kernel/Core/Sys.ns.cpp @@ -147,7 +147,7 @@ void halt() { SimpleVT vt(3, message.size() + 16, 7, 6); vt.map(); vt << "\n\t" << message; - while (1) asm volatile("cli"); + while (1) asm volatile("cli; hlt"); } u32int scall(u8int wat, u32int a, u32int b, u32int c, u32int d) { diff --git a/Source/Kernel/Core/kmain.wtf.cpp b/Source/Kernel/Core/kmain.wtf.cpp index d812c9a..b6543ae 100644 --- a/Source/Kernel/Core/kmain.wtf.cpp +++ b/Source/Kernel/Core/kmain.wtf.cpp @@ -175,10 +175,10 @@ void kmain(multiboot_info_t* mbd, u32int magic) { //*************************************** DEVICE SETUP - if (enableVESA) Dev::registerDevice(new VESADisplay()); - FloppyController::detect(); Dev::registerDevice(new PS2Keyboard()); //Initialize keyboard driver Kbd::setFocus(kvt); //Set focus to virtual terminal + if (enableVESA) Dev::registerDevice(new VESADisplay()); + FloppyController::detect(); //*************************************** MOUNT ROOT FILESYSTEM diff --git a/Source/Kernel/Shell/KernelShell.class.cpp b/Source/Kernel/Shell/KernelShell.class.cpp index b6898ba..f3cd340 100644 --- a/Source/Kernel/Shell/KernelShell.class.cpp +++ b/Source/Kernel/Shell/KernelShell.class.cpp @@ -31,7 +31,7 @@ KernelShell::KernelShell(DirectoryNode* cwd, VirtualTerminal* vt) { } KernelShell::KernelShell(DirectoryNode* cwd) { - ScrollableVT* vt = new ScrollableVT(15, 76, 200, SHELL_FGCOLOR, SHELL_BGCOLOR); + ScrollableVT* vt = new ScrollableVT(15, 76, 200, KVT_FGCOLOR, KVT_BGCOLOR); vt->map(9); setup(cwd, vt); } @@ -65,11 +65,11 @@ u32int KernelShell::run() { }; while (1) { - m_vt->setColor(SHELL_LIGHTCOLOR); + m_vt->setColor(KVT_LIGHTCOLOR); *m_vt << VFS::path(m_cwd) << " # "; - m_vt->setColor(SHELL_ENTRYCOLOR); + m_vt->setColor(KVT_ENTRYCOLOR); Vector tokens = m_vt->readLine().split(" "); - m_vt->setColor(SHELL_FGCOLOR); + m_vt->setColor(KVT_FGCOLOR); if (tokens[0] == "help") { *m_vt << " - Command list for integrated kernel shell:\n"; *m_vt << " - help shows this help screen\n"; -- cgit v1.2.3