How sfluorine/halogen works
Halogen is an early, minimal operating-system kernel. Its sampled runtime entry point initializes the text terminal, then prints repeated decimal values and newlines. The terminal manages cursor position, colors, and scrolling; VGA encoding turns characters and colors into display cells, which the terminal writes to the VGA text buffer. The README gives no further product capabilities, and boot assembly was not sampled, so boot-time wiring is left out.
Main entry points: tty.c Terminal · kernel.c Kernel entry · vga.c VGA encoding · vga.h VGA text buffer
Components 4
Kernel runtime
- Kernel entry
kernel/kernel.c
Text display
- Terminal
kernel/tty.c - VGA encoding
kernel/vga.c - VGA text buffer
kernel/vga.h
Connections 3
- Kernel entry → Terminal: initializes and writes
- Terminal → VGA encoding: encodes cells
- Terminal → VGA text buffer: writes display cells