build: officially naming the kernel "Dewar" and updating kfetch

This commit is contained in:
Karina
2026-01-29 05:29:39 +04:00
parent 8a6994ebd8
commit 3f3a026432
4 changed files with 18 additions and 6 deletions
+11 -4
View File
@@ -29,13 +29,13 @@ void cmd_kfetch() {
kprintf("\n\n");
kprintf("^p %s ^!\t\t^g kernel^!@^gtermos\n^0", ascii_logo[0]);
kprintf("^p %s ^!\t\t^!-------------\n^!", ascii_logo[1]);
kprintf("^p %s ^!\t\t^!-------------\n^!", ascii_logo[1]);
kprintf("^p %s ^!\t\t^gOS^!: termOS %s\n^!", ascii_logo[2], TERMOS_VERSION);
kprintf("^p %s ^!\t\t^gKernel^!: sucks\n^!", ascii_logo[3]);
kprintf("^p %s ^!\t\t^gKernel^!: Dewar (x86_64), build: %s %s\n^!", ascii_logo[3], __DATE__, __TIME__);
kprintf("^p %s ^!\t\t^gUptime^!: %d seconds\n^!", ascii_logo[4], uptime_s);
kprintf("^p %s ^!\t\t^gShell^!: ksh\n^!", ascii_logo[5]);
kprintf("^p %s ^p\t\t^gDE^!: shitgui\n^!", ascii_logo[6]);
kprintf("^p %s ^p\t\t^gCPU^!: %s\n^!", ascii_logo[7], g_cpu.vendor);
kprintf("^p %s ^!\t\t^gDE^!: shitgui\n^!", ascii_logo[6]);
kprintf("^p %s ^!\t\t^gCPU^!: %s\n^!", ascii_logo[7], g_cpu.vendor);
kprintf("\n\n");
}
@@ -71,6 +71,7 @@ void cmd_help() {
kprintf("\t\t^yclear^! \t\tClear console\n");
kprintf("\t\t^yhelp^! \t\tShow this menu\n");
kprintf("\t\t^yrand^! \t\tGet a random number\n");
kprintf("\t\t^yver^! \t\tDisplays termOS's version\n");
}
void cmd_regs() {
@@ -106,3 +107,9 @@ void cmd_debug() {
kprintf("\nDebug ended with code %d\n", status);
return;
}
void cmd_ver() {
kprintf("termOS version %s\n", TERMOS_VERSION);
kprintf("Dewar Kernel (x86_64), build: %s %s\n", __DATE__, __TIME__);
kprintf("License: GPL-3.0-or-later\n");
}
+4
View File
@@ -37,6 +37,7 @@ typedef enum {
TOKEN_CLEAR,
TOKEN_BLINKING,
TOKEN_RAND,
TOKEN_VER,
TOKEN_BACK,
TOKEN_FORWARD,
@@ -70,6 +71,8 @@ static const ksh_command_map token_map[] = {
{"help", TOKEN_HELP},
{"clear", TOKEN_CLEAR},
{"rand", TOKEN_RAND},
{"ver", TOKEN_VER},
{nullptr, TOKEN_NULL}
};
@@ -92,6 +95,7 @@ void ksh() {
case TOKEN_CLEAR: console_clear((u32) console_get_colors() & 0xFFFFFFFF); break;
case TOKEN_BLINKING: console_toggle_cursor_blink(); break;
case TOKEN_RAND: cmd_rand(); break;
case TOKEN_VER: cmd_ver(); break;
case TOKEN_SLEEP: cmd_sleep(); break;
case TOKEN_DEBUG: cmd_debug(); break;