ref(KSH): Renamed files and folder

This commit is contained in:
Karina
2026-02-01 00:39:18 +04:00
parent c72dbc763c
commit 4e10985909
8 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ file(GLOB_RECURSE KERNEL_SOURCES CMAKE_CONFIGURE_DEPENDS
"src/lib/*.c"
"src/IO/*.c"
"src/VM/*.c"
"src/shell/*.c"
"src/KSH/*.c"
"src/FS/*.c"
"Data/*.c"
@@ -3,4 +3,4 @@
#pragma once
void ksh();
void KSHEntry();
@@ -15,7 +15,7 @@
#include <VM/VMM.h>
#include <VM/Heap.h>
#include <shell/dbgcmd.h>
#include <KSH/KSHDebug.h>
#include <Data/cats.h>
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2026 0xKarinyash
#include <shell/dbgcmd.h>
#include <KSH/KSHDebug.h>
#include <IO/IOConsole.h>
UInt64 KSHDebug() {
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Copyright (c) 2026 0xKarinyash
#include <shell/ksh.h>
#include <shell/builtins.h>
#include <KSH/KSHEntry.h>
#include <KSH/KSHBuiltins.h>
#include <IO/IOConsole.h>
#include <IO/IOGraphics.h>
@@ -72,19 +72,19 @@ static const KSHCommandMap CommandMap[] = {
{nullptr, TOKEN_NULL}
};
KSHToken char2token(char* token) {
KSHToken KSHCharacter2Token(char* token) {
for (Int32 i = 0; CommandMap[i].str != nullptr; i++) {
if (StringCompare(token, CommandMap[i].str) == 0) return CommandMap[i].token;
}
return TOKEN_ILLEGAL;
}
void ksh() {
void KSHEntry() {
while (true) {
IOConsoleLog("ksh_> ");
char cmdbuff[256];
IOConsoleReadLine(cmdbuff, 256);
switch(char2token(cmdbuff)) {
switch(KSHCharacter2Token(cmdbuff)) {
case TOKEN_EMPTY: continue;
case TOKEN_CLEAR: IOConsoleClear((UInt32) IOConsoleGetColors() & 0xFFFFFFFF); break;
+2 -2
View File
@@ -3,7 +3,7 @@
#include "bootinfo.h"
#include <shell/ksh.h>
#include <KSH/KSHEntry.h>
#include <types.h>
@@ -107,7 +107,7 @@ void kmain(Bootinfo* info) {
if (c == 'q') rescueMode = true;
}
if (rescueMode) OSSchedulerSpawn(ksh, nullptr, false, 0);
if (rescueMode) OSSchedulerSpawn(KSHEntry, nullptr, false, 0);
else OSSchedulerSpawn(init_task_entry, nullptr, false, 0);
__asm__ volatile("sti");