add multiple kernel shell commands #6

Merged
vicode merged 3 commits from 3-system-command into master 2026-02-18 16:26:07 +00:00
vicode commented 2026-02-18 15:59:00 +00:00 (Migrated from git.vicode.dev)

✨ (init.rs): update shell prompt from "Type something:" to "KFS Shell:" for clarity
✨ (interrupts.rs): refactor keyboard handler to support new shell commands: echo, exit, reboot, debug
✨ (main.rs): reorganize module imports to improve code structure and enable new functionality
✨ (tools.rs): split tools into modular components (echo, reboot, shutdown, stack_debug)
✨ (tools/echo.rs): add echo command to print text input
✨ (tools/reboot.rs): implement QEMU reboot functionality via port 0x64
✨ (tools/shutdown.rs): implement QEMU shutdown functionality via port 0x604
✨ (tools/stack_debug.rs): add comprehensive stack debugging tool with backtrace and GDT inspection

The kernel now includes a functional shell with multiple built-in commands. The prompt is more descriptive, and users can execute commands like echo, exit, reboot, and debug to inspect system state. The modular tool design improves maintainability and enables future expansion.

Closes #3

✨ (init.rs): update shell prompt from "Type something:" to "KFS Shell:" for clarity ✨ (interrupts.rs): refactor keyboard handler to support new shell commands: echo, exit, reboot, debug ✨ (main.rs): reorganize module imports to improve code structure and enable new functionality ✨ (tools.rs): split tools into modular components (echo, reboot, shutdown, stack_debug) ✨ (tools/echo.rs): add echo command to print text input ✨ (tools/reboot.rs): implement QEMU reboot functionality via port 0x64 ✨ (tools/shutdown.rs): implement QEMU shutdown functionality via port 0x604 ✨ (tools/stack_debug.rs): add comprehensive stack debugging tool with backtrace and GDT inspection The kernel now includes a functional shell with multiple built-in commands. The prompt is more descriptive, and users can execute commands like `echo`, `exit`, `reboot`, and `debug` to inspect system state. The modular tool design improves maintainability and enables future expansion. Closes #3
vicode commented 2026-02-18 15:59:01 +00:00 (Migrated from git.vicode.dev)

assigned to @vicode

assigned to @vicode
vicode commented 2026-02-18 16:13:54 +00:00 (Migrated from git.vicode.dev)

added 1 commit

  • dec3538d - 🐛 (stack_debug.rs): fix typo in help message for syscall_stack description

Compare with previous version

added 1 commit <ul><li>dec3538d - 🐛 (stack_debug.rs): fix typo in help message for syscall_stack description</li></ul> [Compare with previous version](/19campus/kfs-2/-/merge_requests/3/diffs?diff_id=51&start_sha=5aa2ddb7c532ee0c7dd9799257e3c649b429906c)
jgoudema commented 2026-02-18 16:19:17 +00:00 (Migrated from git.vicode.dev)

added 1 commit

  • c5b5b00f - chore(vga.rs): remove unused x86_64::structures::idt::InterruptDescriptorTable import

Compare with previous version

added 1 commit <ul><li>c5b5b00f - chore(vga.rs): remove unused x86_64::structures::idt::InterruptDescriptorTable import</li></ul> [Compare with previous version](/19campus/kfs-2/-/merge_requests/3/diffs?diff_id=52&start_sha=dec3538dd071e42d7aff8e23082403aec703f888)
vicode commented 2026-02-18 16:26:08 +00:00 (Migrated from git.vicode.dev)

mentioned in commit bb6c2570b2

mentioned in commit bb6c2570b20804874303bdcdbead947b4a889ccc
vicode (Migrated from git.vicode.dev) merged commit bb6c2570b2 into master 2026-02-18 16:26:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Vicode/kfs-2!6
No description provided.