Fix: fixing push/pull for commit "Initital beggining of a CLI"

This commit is contained in:
AfonsoCMSousa
2026-08-03 14:58:20 +01:00
parent 403face1e6
commit 1dfe5d4fea
2 changed files with 129 additions and 20 deletions
+16 -19
View File
@@ -11,33 +11,30 @@
#include "stdio.h"
typedef struct {
char user_name[32];
char user_hostname[32];
char user_name[32];
char user_hostname[32];
unsigned int user_id;
unsigned int user_id;
} user;
void kmain(void) {
user current_user = {
.user_name = "admin",
.user_hostname = "soraos",
.user_id = 0
};
user current_user = {.user_name = "admin", .user_hostname = "soraos", .user_id = 0};
__clear_screen();
__clear_screen_colored(LIGHT_GREEN);
printf("SoraOS Kernel Initialized!\n");
printf("\tWelcome to SoraOS!\n");
printf("\tKernel Version: %s\n", __KERNEL_VERSION);
printf("\tCompiled on: %s at %s\n\n", __DATE__, __TIME__);
printf("SoraOS Kernel Initialized!\n");
printf("\tWelcome to SoraOS!\n");
printf("\tKernel Version: %s\n", __KERNEL_VERSION);
printf("\tCompiled on: %s at %s\n\n", __DATE__, __TIME__);
// TODO: CLI IDEA
int _count = printf("%s@%s:>", current_user.user_name, current_user.user_hostname);
scursor(_count, text_pos.line);
// TODO: CLI IDEA
int _count = printf("%s@%s:>", current_user.user_name, current_user.user_hostname);
scursor(_count, text_pos.line);
// TODO: Enable user input handling
// TODO: Enable user input handling
// char input_buffer[256];
// scanf("%s", input_buffer);
// printf("\nYou entered: %s\n", input_buffer);
// Infinite loop
while (1) {